Changed the counter class