count method

int count(
  1. Predicate<T> p
)

Positives predicate results count

Implementation

int count(Predicate<T> p) => where(p).length;