added counter functions