Remove a call to does_match() in count_matches_in_resource