std::count_if returns the number of elements in the range [first, last) meeting specific criteria, that is, number of elements that satisfy the condition. Exceptions
Syntax
Example
Know how many elements in vector vec have zero remainder when divided by 2!
Other example
How many words from our group are there in the sentence: “That day everything was very quiet.”