added sort_by_total_count to word_controller.rb