You can see and hear Rich as he demonstrates an automatic counter by using the pulse bit. Replace the pulse with your own input modules to count your events.
Rich recorded himself on his phone counting to 20 with two second spaces in between each number. Then he used audio editing software to cut the file into 20 separate .mp3 files. In order to make sure the mp3 files all played in order, he began each file name with a number. He even included a .zip file with numbers he read aloud from 1 to 20. Way to go, Rich!