Count Prefixes of a Given String
python3 sol\n\nclass Solution:\n    def countPrefixes(self, words: List[str], s: str) -> int:\n        count= 0 \n        for i in words:\n            if i ==s:
python3 sol\n```\nclass Solution:\n    def countPrefixes(self, words: List[str], s: str) -> int:\n        count= 0 \n        for i in words:\n            if i ==s:\n                count+=1\n            else:\n                if i ==s[:len(i)]:\n                    count+=1\n        return count\n```
['Python']