Fix WordCount example (sort by word count)