7 Liner javaScript Easy Solution
Code\njavascript []\n/**\n * @param {string[]} words\n * @param {string} s\n * @return {number}\n */\nvar countPrefixes = function (words, s) {\n  let count = 0
# Code\n```javascript []\n/**\n * @param {string[]} words\n * @param {string} s\n * @return {number}\n */\nvar countPrefixes = function (words, s) {\n  let count = 0;\n  for (let i = 0; i < words.length; i++) {\n    if (s.startsWith(words[i])) {\n      count++;\n    }\n  }\n  return count;\n};\n```
['JavaScript']