function wordCount

I did this one using a string method and a string property: split and
length

it is working well