Return the number of elements in this sequence.
The operation is terminal.
Return the number of elements matching the given predicate.