private int getTotalRequestedHostCount() {
    int count = 0;
    for (HostGroupInfo groupInfo : getHostGroupInfo().values()) {
      count += groupInfo.getRequestedHostCount();
    }
    return count;
  }
Get the total number of requested hosts for the request.
@return  total requested host count
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ScaleClusterRequest.java