Implement basic functionality

This method will count the number of words in an input string.
Document new feature

Use JSDoc-style code comments to document the API of the function in the
source code itself, and add a usage example to the project's README.md
file.
Test new functionality

Ensure that the basic functionality is working as we expect.
Merge branch 'basic-functionality'