count_if
C++\ncpp\nint countPrefixes(vector<string>& words, string s) {\n    return count_if(begin(words), end(words), [&](const auto &w){ return s.compare(0, w.size(), 
**C++**\n```cpp\nint countPrefixes(vector<string>& words, string s) {\n    return count_if(begin(words), end(words), [&](const auto &w){ return s.compare(0, w.size(), w) == 0; });\n}\n```
['C']