Javascript easy solution
\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
```\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(words[i] === s.slice(0, words[i].length)) {\n            count++;\n        }\n    }\n    return count;\n};\n```
['JavaScript']