Hint 1
Notice that when a number goes over nine, the counter starts again at zero. In other words, the numbers are on a loop, so touch the buttons as many times as you like. It won't mess anything up.
If you touch each button several times and pay close attention to what each one does, the rules should become clear.

