Code sample - count the words in a book