Ladybirds gathered in a sunny clearing. If a ladybird has \(6\) spots, it always tells the truth, and if it has \(4\) spots, it always lies. There are no other types of ladybirds in the meadow.
The first ladybird said: “We each have the same number of spots on our backs.”
The second said: “Altogether, we have \(30\) spots.”
“No, we have \(26\) spots in total,” objected the third.
“Of these three, exactly one spoke the truth,” declared each of the other ladybirds.
How many ladybirds were gathered in the meadow?