Modify the looping counter of timer.