Refactored the NumberOfInputs setting in JobGraphBuilder