fixed counter functions