I have a hard time believing there are that many planets that are "exactly" like Earth. It's one thing to say that a planet has an atmosphere that can support life. It's another thing to say that it's atmosphere has 78% nitrogen and 21% oxygen.
In dinosaur times, it is believed that the oxygen concentration on Earth was as much as 30% higher than today. Clearly the Earth was already a planet that could support life, but that doesn't mean we could breathe the air for long without appropriate gas masks. Yet in Star Trek, the air of "M class" planets is always identical to what we breathe.
So in dinosaur times the Oxygen content would have been around 27%, I'm fairly sure we could breath that. We didn't hear that often the actual make-up of the Atmosphere, so they may not all be "exactly" Earth Like
We've seen Class L worlds:-
DSN: "The Ascent"
DSN: "The Sound of Her Voice"
There are more varied types of planets in later series, I do appreciate that, but I was primarily talking about Star Trek. (TOS is just wrong, its Star Trek)