ruby version of wordcount using streamline