Java Solution | easy
\nclass Solution {\n    public int prefixCount(String[] words, String pref) {\n    int c = 0;\n    for(String s : words) {\n        if(s.indexOf(pref)==0) \n   
```\nclass Solution {\n    public int prefixCount(String[] words, String pref) {\n    int c = 0;\n    for(String s : words) {\n        if(s.indexOf(pref)==0) \n            c++;\n    }\n    return c; \n    }\n}\n```
['Java']