Ruby solution. 1-line
\n# @param {String[]} words\n# @param {String} s\n# @return {Integer}\ndef count_prefixes(words, s)\n    words.count { |word| s.start_with?(word) }\nend\n
```\n# @param {String[]} words\n# @param {String} s\n# @return {Integer}\ndef count_prefixes(words, s)\n    words.count { |word| s.start_with?(word) }\nend\n```
['Ruby']