How many shows and anime has sonic been in?

Sonic has been in four cartoons:

Sonic The Hedgehog

The Adventures of Sonic the Hedgehog

Sonic Underground

Sonic X

He has also been in one film, Sonic The Hedgehog The Movie.