Do you want to keep track of how many times something occurs? Counters are for you.
A counter is typically just an integer variable that you add to or subtract from to keep count of something.
There are more than one ways that you can add a number to a variable:
intCounter = intCounter + 1 OR
intCounter += 1 intCounter = intCounter - 1OR
intCounter -= 1 intCounter = intCounter + 5OR
intCounter += 5