Returns the number of elements matching the given test predicate.
test
int count(bool Function(T element) test) => where(test).length;