Replaced counter block with an accumulator.