public int countRegionWithSpecifiedStatus(TConsensusGroupType type, RegionStatus... status) {
    return loadCache.countRegionWithSpecifiedStatus(type, status);
  }
Count the number of cluster Regions with specified RegionStatus.

@param type The specified RegionGroupType
@param status The specified statues
@return The number of cluster Regions with specified RegionStatus
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/load/LoadManager.java