Simple Javascript function to count the number of words in a string, regardless of the amount of white space, multiple spaces, tabs, carriage returns the string has.