Python straightforward with startswith.
\ndef countPrefixes(self, words: List[str], s: str) -> int:\n\n    c = 0\n    for w in words:\n        if s.startswith(w):\n            c += 1\n\n    return c\n
```\ndef countPrefixes(self, words: List[str], s: str) -> int:\n\n    c = 0\n    for w in words:\n        if s.startswith(w):\n            c += 1\n\n    return c\n```
['Python']