public int[] sizes() throws CacheException {
    RegionSizeResponse resp = (RegionSizeResponse) sendAndWait(RegionSizeRequest.create());
    return new int[] {resp.getEntryCount(), resp.getSubregionCount()};
  }
Returns a two element array, the first of which is the entry count, the second is the subregion
count
geode-core/src/main/java/org/apache/geode/internal/admin/remote/AdminRegion.java