❤ Easy, Fast & Understandable Python Solution
IntuitionThe intuition for this problem is to check each word in the list to see if it starts with the given prefix. We can use pythons startswith() method to a
# Intuition
The intuition for this problem is to check each word in the list to see if it starts with the given prefix. We can use pythons ``startswith()`` method to approach this.

# Approach
Iterate through each word in the ``words`` list. Then we use the ``startswith()`` method to check the specified prefix. Then we add to the count how many times we've seen a match.

# Complexity
- Time complexity: O(N∗M)

- Space complexity: O(1)
<!-- Add your space complexity here, e.g. $$O(n)$$ -->

# Code
```python3 []
class Solution:
    def prefixCount(self, words: List[str], pref: str) -> int:
        count = 0 
        for word in words:
            if word.startswith(pref):
                count += 1
        return count
```
Please **upvote** 😄❤
['Array', 'String', 'String Matching', 'Python3']