Simple, Short | C++
Counting Words With a Given Prefix\nTravel each word in words and check if it\'s size is greater or equal to size if prefix and compare the substring of length 
**Counting Words With a Given Prefix**\nTravel each word in words and check if it\'s size is greater or equal to size if prefix and compare the substring of length n(size of prefix) with prefix, if equal increase count.\n\n```\nint prefixCount(vector<string>& words, string p) {\n        int n=p.size();\n        int ans=0;\n        for(auto w:words)\n        {\n            if(w.size()>=n and w.substr(0,n)==p)\n            {\n                ans++;\n            }\n        }\n        return ans;\n    }\n```
['String', 'C']