How to detect if a player has eaten a Golden Apple? (Minecraft)?

I'm making my realms (Which means no plugins or mods) server UHC (Natural Regeneration off) and i want a scoreboard to show how many Golden Apples every player has. I have it so that when you craft a Golden Apple it adds to the scoreboard but i need it so that when you eat one it takes away or so it just tracks how many are in your inventory. Anybody know a way to do this?

You have to be good with redstone and Commandblocks

That isn't exactly helpful to me…
I'm good with redstone and Command Blocks i just don't know how to do this