C++ || Easy || Simple
\n\n# Code\n\nclass Solution {\npublic:\n    int countPrefixes(vector<string>& words, string s) {\n        int count = 0;\n        for (string word : words)\n  
\n\n# Code\n```\nclass Solution {\npublic:\n    int countPrefixes(vector<string>& words, string s) {\n        int count = 0;\n        for (string word : words)\n        {\n            if(s.find(word) == 0) \n            { \n                count++;\n            }\n        }\n        return count;\n    }\n};\n\n```
['C++']