Sometimes it is easier to count all the cases as well as those unqualified cases. Then, their difference gives the count of qualified cases.