public int getRegisteredNodeCount() {
    return nodeInfo.getRegisteredNodeCount();
  }
Only leader use this interface.

@return The number of registered Nodes
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/node/NodeManager.java