Count words

Counting words in a huge text with the memory limit

Example