Counts the elements for whichs the predicate holds.
See where.
int countWhere(bool Function(T) test) { return where(test).length; }