create class Counter