Contando nenhuma palavra na string javascript
return str.split(' ').length;
Glamorous Gharial
return str.split(' ').length;