@Override
  public void copyExistingRegionMap(LocalRegion lr) {
    waitForRecoveryCompletion();
    if (entriesMapIncompatible) {
      // Reset the numEntriesInVM. It will be incremented when the copy to the new map is done,
      // down in DiskEntry.Help.initialize. However, the other stats can't be updated
      // there because we don't have the value length at that point. So leave
      // those stats alone.
      numEntriesInVM.set(0);

      lr.initializeStats(getNumEntriesInVM(), getNumOverflowOnDisk(),
          getNumOverflowBytesOnDisk());
      lr.copyRecoveredEntries(entries);
    } else {
      entries.changeOwner(lr);
      lr.initializeStats(getNumEntriesInVM(), getNumOverflowOnDisk(),
          getNumOverflowBytesOnDisk());
      lr.copyRecoveredEntries(null);
    }
    entries = null;
  }
Total number of entries recovered by restoring from backup. Its initialized right after a
recovery but may be updated later as recovered entries go away due to updates and destroys.
geode-core/src/main/java/org/apache/geode/internal/cache/AbstractDiskRegion.java