How Many Levels Are in Shadow the Hedgehog?

Shadow the Hedgehog has 19 levels in total, with roughly 5 levels per playthrough. The branching story paths are what give the game its replay value, since different choices lead you through different stages.