This is not necessary.  But, going forward, if the audience would like to tweak and play with the code, they would come to know that this piece of code would also serve the classic word-count use case.

This split() call is intentional.