code: def count_list(the_list):
      
      count = the_list.count
      result = [(item, count(item)) for item in set(the_list)]
      result.sort()
      return result
docs: Generates a count of the number of times each unique item appears in a list