Home

Word Count

Answer

function WordCount(str) { return str.split(' ').length; }