Python one line solution
\n\n# Code\n\nclass Solution:\n    def countPrefixes(self, words: List[str], s: str) -> int:\n        return len([i for i in words if s.startswith(i)])\n
\n\n# Code\n```\nclass Solution:\n    def countPrefixes(self, words: List[str], s: str) -> int:\n        return len([i for i in words if s.startswith(i)])\n```
['Python3']