counter and type