def METHOD_NAME(self, items_count, new_identities, sh_db, connector_name):
    identities_count = len(new_identities)
    SortingHat.add_identities(sh_db, new_identities, connector_name)
    return identities_count