notice how the update method adds the counts rather than replacing them with new values once the counter is populatedwe can access stored values in the same way we would for dictionariesfor examplethe most notable difference between counter objects and dictionaries is that counter objects return zero count for missing items rather than raising key errorfor examplewe can create an iterator out of counter object by using its elements(method this returns an iterator where counts below one are not included and the order is not guaranteed in the following codewe perform some updatescreate an iterator from counter elementsand use sorted(to sort the keys alphabetically