Counter class finished and working