A Ruby word counter with some handy methods.