Reset count in the sim loop