private void validateTotalNumBucketsCount(final String regionName, final int expectedCount) {
    Cache cache = ClusterStartupRule.getCache();
    PartitionedRegion region = (PartitionedRegion) cache.getRegion(regionName);
    PartitionedRegionStats stats = region.getPrStats();

    assertThat(stats.getTotalNumBuckets()).isEqualTo(expectedCount);
  }
Test to make sure the datastore entry count is accurate.
Region entry stats are validated before and after entry destroy.
Ensure that tombstones and tombstone GC are not affecting the region
entry count.
geode-core/src/distributedTest/java/org/apache/geode/internal/cache/PartitionedRegionStatsDistributedTest.java