Simple | Easy | (100%) JAVA Solution
\n\nclass Solution {\n    public int countPrefixes(String[] words, String s) {\n        int count=0;\n        for(String word: words){\n            if(s.startsW
\n```\nclass Solution {\n    public int countPrefixes(String[] words, String s) {\n        int count=0;\n        for(String word: words){\n            if(s.startsWith(word)) count++;\n        }\n        return count;\n    }\n}\n```
['String', 'Counting', 'Java']