Track food eaten

how to track how manny food items a player has eaten wiwth a scoreboard. It can be done for individual items with scoreboard objectives add eatBread minecraft.used:minecraft.bread (or any other food item), but idk how to track it for any food item

Continue to help post