C++ || Easy Solution
\nclass Solution {\npublic:\n    int prefixCount(vector<string>& words, string pref) {\n        int cnt=0;\n        int n=pref.size();\n        for(auto s:words
```\nclass Solution {\npublic:\n    int prefixCount(vector<string>& words, string pref) {\n        int cnt=0;\n        int n=pref.size();\n        for(auto s:words)\n        {\n            if(s.size()>=pref.size())\n            {\n                if(s.substr(0,n)==pref)\n                    cnt++;\n            }\n        }\n        return cnt;\n    }\n};\n```
[]