@Override
  public int getClusterSize() {
    return clusters.getClusterSize(clusterName);
  }
Returns the number of hosts that form the cluster.

 @return number of hosts that form the cluster
ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java