cpp/algorithm/ranges/count

Returns the number of elements in the range satisfying specific criteria. @1@ counts the elements that are equal to. @3@ counts elements for which predicate returns. @2,4@ Same as, but uses as the source range, as if using  as  and  as.

Return value
Number of elements satisfying the condition.

Complexity
Exactly comparisons and projection.