public int countDataNodeScatterWidth(int dataNodeId, TConsensusGroupType type) {
    int clusterNodeCount = getNodeManager().getRegisteredNodeCount();
    return partitionInfo.countDataNodeScatterWidth(dataNodeId, type, clusterNodeCount);
  }
Only leader use this interface.

<p>Count the scatter width of the specified DataNode

@param dataNodeId The specified DataNode
@param type SchemaRegion or DataRegion
@return The schema/data scatter width of the specified DataNode. The scatter width refers to
    the number of other DataNodes in the cluster which have at least one identical schema/data
    replica as the specified DataNode.
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/partition/PartitionManager.java