🔥BEATS 💯 % 🎯 |✨SUPER EASY FOR BEGINNERS 👏
Code
![image.png](https://assets.leetcode.com/users/images/8eded86b-3f70-4b20-9d18-c8d23e539b1e_1736395174.2889311.png)


# Code
```python3 []
class Solution:
    def countPrefixes(self, words: List[str], s: str) -> int:
        
        c = 0
        for i in words:
            if s.startswith(i):
                c += 1
        return c
```
![ba0bc1d0-c297-43a2-b6a7-e2a943eaa77b_1701996327.3360279.png](https://assets.leetcode.com/users/images/a39a8f2d-86f9-428a-a85f-c2beaa28d575_1736395199.5328493.png)

['Python3']