Returns the number of an output tensor given its STensorId.
References output_ids, and SYTEN_ASSERT_MSG.