There are 12. In order, they are Destiny Islands, Traverse Town, Wonderland, Olympus Coliseum, Deep Jungle, Agrabah, Monstro, Atlantica, Halloween Town, Neverland, Hollow Bastion, and The End of the World.
The first two function as the game's opening and hub areas, while Hollow Bastion and The End of the World belong to the late game. Deep Jungle and Atlantica are also the two that differ most in play style from the rest.
Later entries expanded the world count considerably, which is why twelve sounds small to anyone who started with the sequels.