fix arguments for getCounter method.