Parts cut in summary report

I am trying to show the number of parts that were cut in the summary report by using the @PartsCut@ variable. It however produces and error. I tried putting it in the summary section of the Jet report and that also gives error even though it is used further up in the parts section and show the part count correctly there.

Are variables local to sections or are they global in the report function?