More than anyone can count. Sonic has been running with a supporting cast for over three decades, and the roster keeps growing with nearly every new game.
The answer also depends on how generous you are feeling. Tails and Amy are unambiguously friends. Shadow is more of a rival who occasionally helps out, and Knuckles sits somewhere in between — ally one minute, opponent the next.