C++ || 5 Lines Code || Very Easy O(N)  Solution
\nint countPrefixes(vector<string>& words, string s) {\n       int c=0;\n       for(string str:words){\n            int len=str.length();\n           string sub
```\nint countPrefixes(vector<string>& words, string s) {\n       int c=0;\n       for(string str:words){\n            int len=str.length();\n           string subs=s.substr(0,len);\n           if(str==subs){\n                c++;\n           }\n       } \n       return c;\n    }\n```
['String', 'C', 'Iterator', 'C++']