match.count conditional test