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