Moved a reset of a counter