How to, counters
Using a integral number is pointless.
Take single digits 0-9 in a database. ID each digit.
Finally, write a routine for adding and subtraction of those digits and update the blob of IDs in the database to reflect a counter hit or miss.