(transaction-script or transaction-create).
use std::outputs::output_count; fn foo() { let output_count = output_count(); log(output_count); }