reseting the counters.