JS easiest way
\nvar countPrefixes = function(words, s) {\n  \n    let cont = 0;\n    \n    for(i = 0; i < words.length; i++){\n        for(j = 1; j <= s.length; j++){\n      
```\nvar countPrefixes = function(words, s) {\n  \n    let cont = 0;\n    \n    for(i = 0; i < words.length; i++){\n        for(j = 1; j <= s.length; j++){\n            if(words[i] == s.slice(0, j)){\n                cont++;\n            }\n        }        \n    }\n     return cont;\n    \n};\n```
['JavaScript']