ruby word count