Please use `Enumerable#sort_by` and `String#count`.