public void calcSize(Region r) {
    if (cancelled) {
      return;
    }

    Set nameSet = r.keySet();
    if (cancelled) {
      return;
    }
    entryCount = nameSet.size();
    Set subRegions = r.subregions(false);
    if (cancelled) {
      return;
    }
    subregionCount = subRegions.size();
  }
Returns a <code>RegionSizeResponse</code> that will be returned to the specified recipient.
geode-core/src/main/java/org/apache/geode/internal/admin/remote/RegionSizeResponse.java