this "count" method gets the same parameters as the list version