data = ['apple', 'pear', 'cherry', 'apple', 'pear', 'apple', 'banana']
counts = Counter(data)
How to organize list by frequency of occurrence and alphabetically (in case of a tie) while eliminating duplicates?