Fill in countMatching so that it returns how many elements satisfy the predicate p.
The caller supplies a lambda: x -> x > 0 counts positives, x -> x % 2 == 0 counts evens — the same method, different behaviour passed in. The program prints 3 and then 2.