Added immutable implementation of counting unique words in a string of
text.