Adds word_count method to string.
"Some String Content".word_count # => 3Add this line to your application's Gemfile:
gem 'count_words'And then execute:
$ bundleOr install it yourself as:
$ gem install count_wordsThe gem is available as open source under the terms of the MIT License.