public int getTotalNumBuckets() {
    return totalNumBuckets;
  }
This method returns total number of buckets for a PartitionedRegion.

@return total number of buckets for a PartitionedRegion.
geode-core/src/main/java/org/apache/geode/cache/client/internal/ClientPartitionAdvisor.java