Added methods to counter class.