reset counters to properly handle timer interrupts