ConstElement type produced by the source iterable.
Optionalpred: IndexedPredicate<T>Predicate receiving each element and its index; truthy results increment the count.
Number of elements accepted by pred, or the total element count when omitted.
Counts the elements of the source iterable that satisfy the optional predicate.
Curried version of _count.