Word Count Function

The function has a parameter that accepts a string of words that has
been split into an array of substrings. The function determines the
length of the array and returns the value.