Arf the Dog gets five points when he eats a cupcake and two points for eating a hotdog. When food is eaten it disappears. Reset the points when you click the green flag.
There are two variables. One is a “goal” number. The other is the “current” number.