issue 1124: Fixed bug in counter logic causing resets to become increments