public int getLeaderRegionCount() {
    return leaderRegionCount;
  }
Get leader region count in this node.

@return leader region count
iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/pipe/agent/task/PipeTaskManager.java