Python straight forward one-liner
Here is what I did:\n\npython\n    def countPrefixes(self, words: List[str], s: str) -> int:\n        return sum(s.startswith(word) for word in words)\n
Here is what I did:\n\n```python\n    def countPrefixes(self, words: List[str], s: str) -> int:\n        return sum(s.startswith(word) for word in words)\n```
['Python']