Number of inputs and outputs are already limited, as transaction maximum size is not infinite.