measure counter works