def METHOD_NAME(self, cdb: CDB, count: int) -> None:
    """Save the CDB as the latest checkpoint.
    Args:
        cdb (medcat.CDB):
            The MedCAT CDB object to be checkpointed.
        count (count):
            The number of the finished steps.
    """
    ckpt_file_path = os.path.join(os.path.abspath(self._dir_path), "checkpoint-%s-%s" % (self.steps, count))
    while len(self._file_paths) >= self._max_to_keep:
        to_remove = self._file_paths.pop(0)
        os.remove(to_remove)
    cdb.METHOD_NAME(ckpt_file_path)
    logger.debug("Checkpoint saved: %s", ckpt_file_path)
    self._file_paths.append(ckpt_file_path)
    self._count = count