Normally, you often hear "You ate so much!". It seems that "much" here is food and food is uncountable noun so we use "much".
But let see this sentence "There were 50 candies on the plate, but now they re all gone. You ate so many!". We use "many" because candy is countable noun.
Does above sentence make any sense?