Correct number of upstreams to synchronize in barrier, even when inputDataIngestionMode is more than one. Clean code