Add to (or, with a negative amount, subtract from) a counter's value
The counter to update
How much to add (negative to subtract)
Read a counter's current value
The counter to read
The counter's value, or 0 if it has never been set
Clear every counter (e.g., between levels)
Overwrite a counter's value
The counter to set
The new value
Counter is a flexible, string-keyed registry of numeric values that can be used for anything a game needs to track.