Easy For Loop Solution
```java []
class Solution {
    public int prefixCount(String[] words, String pref) {
        int count =0;
        for(String word : words){
            if(word.indexOf(pref) == 0){
                count+=1;
            }
        }
        return count;
    }
}
```
```python3 []
class Solution:
    def prefixCount(self, words, pref):
        count = 0
        for word in words:
            if word.find(pref) == 0:
                count += 1
        return count

```
['Java', 'Python3']