Ruby wordcount