You need to complete all four stories to unlock the final fight against Metal Sonic.
If you stick strictly to the stages that appear in story mode and do not replay anything extra, that works out to 56 emblems.
Grinding optional stages will push the number higher, but it is not required. Clear Team Sonic, Team Dark, Team Rose, and Team Chaotix, and the boss unlocks on its own.