How do I to count without button

Show us what you've tried so far.
What exactly is the goal? Give us some examples.

And read this first: