private int acceptedAndCompatibleOrResizable() {
        if (nodeType() == NodeType.tenant) return acceptedAndCompatibleOrResizable;
        // Infrastructure nodes are always allocated by type. Count all nodes as accepted so that we never exceed
        // the wanted number of nodes for the type.
        return allNodes.nodeType(nodeType()).size();
    }
Returns the number of nodes accepted this far
node-repository/src/main/java/com/yahoo/vespa/hosted/provision/provisioning/NodeAllocation.java