Getting just one count++;

Only print when second becomes zero.

See the StateChangeDetection example in the IDE