Python 1 Liner Solution
\nclass Solution:\n    def prefixCount(self, words: List[str], pref: str) -> int:\n        return sum(word.find(pref) == 0 for word in words)\n
```\nclass Solution:\n    def prefixCount(self, words: List[str], pref: str) -> int:\n        return sum(word.find(pref) == 0 for word in words)\n```
['Python', 'Python3']