Remove while loop in counter decrement.