public int nodeCount() {
        if ( ! nodes.isEmpty()) return (int)nodes.not().retired().stream().count();
        return cluster.minResources().nodes();
    }
The number of nodes this cluster has, or will have if not deployed yet.
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/autoscale/ClusterModel.java