docs: def update_id_counter(self):
          """Update the `id_` counter so that it doesn't grow forever.
          """
  
          if not self.__entries:
              self.__next_id = 1
          else:
              self.__next_id = max(self.__entries.keys()) + 1