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