implement count arg