Programming the hardware timers - advanced level

I have a mention of this problem on my page about timers:

Near the bottom where I try out all the modes is this line:

Also note that you need to set the counter after starting the timer (as shown above) or you get rather strange results like this ...