FrequentWords now has a method that returns a Map of all patterns and their frequencies