Getting total pieces ordered on a SO to print on the SO

is there a way to get a sum total of all the pieces ordered to calculate and print on the SO, Packing list or bill of lading.

I am looking for the grand total of all the items.  Having a grand total of the items shipped would also be helpful.

Thanks