How do you create custom counters?

Follow the instructions in this thread for creating a set of commands to run a flexible counter (can add any integer value), then add these commands to specifically add 10 and -10.

!addcom !pushups+ -a=!add 10
!addcom !pushups- -a=!add -10