Two: the Dreamcast and the Nintendo GameCube.
The Dreamcast version was the original, and the GameCube release came later as Sonic Adventure 2: Battle, which added a multiplayer mode and a roster of unlockable Chao for players with a Game Boy Advance link cable. Both contain the same main story, so either is a fine way to play it — Battle is generally the pick if you want the extras.