Python simple solution
Approach\nCheck for each word if is prefix of s.\n\n# Code\n\nclass Solution:\n    def countPrefixes(self, words: List[str], s: str) -> int:\n        res = 0\n\
# Approach\nCheck for each word if is prefix of s.\n\n# Code\n```\nclass Solution:\n    def countPrefixes(self, words: List[str], s: str) -> int:\n        res = 0\n\n        for word in words:\n            if s.startswith(word):\n                res += 1\n\n        return res\n```\n\nLike it? Please upvote!
['Python3']