Java 1-Liner
java\npublic int countPrefixes(String[] words, String s) {\n        return (int) Arrays.stream(words).filter(s::startsWith).count();\n    }\n\n\nMy repositories
```java\npublic int countPrefixes(String[] words, String s) {\n        return (int) Arrays.stream(words).filter(s::startsWith).count();\n    }\n```\n\nMy repositories with leetcode problems solving - [Java](https://github.com/FLlGHT/algorithms/tree/master/j-algorithms/src/main/java),  [C++](https://github.com/FLlGHT/algorithms/tree/master/c-algorithms/src/main/c%2B%2B)
['Java']