Use expression for min/max count in NodeDefinition