UMaterialExpression::CountInputs

Counts the number of inputs this expression has. Default implementation has O(n) complexity.