C++ || EASY TO UNDERSTAND || Simple Solution
\nclass Solution {\npublic:\n    int countPrefixes(vector<string>& words, string s) \n    {\n        int counter = 0;\n        \n        for(int i=0;i<words.siz
```\nclass Solution {\npublic:\n    int countPrefixes(vector<string>& words, string s) \n    {\n        int counter = 0;\n        \n        for(int i=0;i<words.size();i++)\n        {\n            if(words[i] == s.substr(0,words[i].size()))  \n                counter++;\n        }\n\n        return counter;\n    }\n};\n```
[]