counter works