A Ruby class for counting words in a document.