converted from using an Integer to using a Counter.