count can take a predicate directly, no? or am I thinking of just plain Scala