/**
 * Counts the words of a string.
 * @param {} str The initial string to process.
 * @return {number}  The number of words the string contains.
 */
function countWords(str) {
    'use strict';

    if (typeof str !== 'string') {
        throw new TypeError('A string was expected as argument, instead saw ' + typeof str);
    }

    var matches = str.match(/\S+/g) ;
    return matches ? matches.length : 0;
}

@@ -41,16 +41,22 @@
 @param %7B
+string
 %7D str Th
@@ -61,16 +61,8 @@
 The 
-initial 
 stri

fix typo in function annotation