code: def multiple_contacts_get_values(C):
      
      d = collections.OrderedDict()
      for c in C['contacts']:
          ct = tuple(c)
          if ct in d:
              d[ct] += 1
          else:
              d[ct] = 1
  
      new_contacts = []
      new_values = []
      for (key, value) in d.items():
          new_values.append(value)
          new_contacts.append(key)
      C_out = C
      C_out['contacts'] = new_contacts
      C_out['values'] = new_values
      return C_out
docs: Given an contact representation with repeated contacts, this function removes duplicates and creates a value
  
      Parameters
      ----------
  
      C : dict
  
          contact representation with multiple repeated contacts.
  
      Returns
      -------
  
      :C_out: dict
  
          Contact representation with duplicate contacts removed and the number of duplicates is now in the 'values' field.