Got counter working