Word counter

Complete the function counter to return the number of words in a given string.
Python
Setting up Python environment...
Output