Fetch number of outputs on Rx instead of hardcoded values