thanks Remy,
I didn't understand this part
then I saw that if you don't use it, the timer continues indefinitely. So it is used to count the number of timer activations and when you have reached the desired number of activations, stop the thread; very interesting.