Create a histogram of a sequence using map

Creates a map containing each item and its frequency as a key/value pair. Then sort by value in reverse order before printing each item.