def METHOD_NAME(self, record_dict: Dict[str, Any]) -> int:
    """ Each unique set of record keys is assigned an increasing numeric key """
    return self._keys.setdefault(frozenset(record_dict.keys()), len(self._keys))