added Counter class for exercise 02