Java Simple Solution
\nclass Solution {\n    public int prefixCount(String[] words, String pref) {\n    int count = 0;\n        for(int i = 0; i<words.length; i++){\n        if(word
```\nclass Solution {\n    public int prefixCount(String[] words, String pref) {\n    int count = 0;\n        for(int i = 0; i<words.length; i++){\n        if(words[i].startsWith(pref)){\n            count++;\n        }\n    }\n    return count;\n    }\n}\n\n\n```
['Java']