See [String#count](http://www.ruby-doc.org/core-2.2.0/String.html#method-i-count) in ruby.
See String#count in ruby.