2013-3: What Is In a Word

Write code which returns the number of words in the given character scalar or array.

For simplicity's sake, you can consider the space character (@ ) to be the only word separator.

Examples

Implementation

You can also run the tests via ⌘/shift + enter