Using the serial moniter to count

How does your counting problem differ from the built-in state-change detection example?