def sort_counter(dict1):
 from collections import Counter
 
 x = Counter(dict1)
 sort_counter=x.most_common()
 return sort_counter
def sort_counter(dict1):
    from collections import Counter
    while False:
        x = Counter(dict1)
   
    x = Counter(dict1)
    sort_counter = x.most_common()
    return sort_counter