How to add page numbers to packing slips?

Is there a way to add page numbers to the bottom of packing slips, such as “Page 1 of 1”, “Page 1 of 2”

It would help give our fulfillment team confidence that all items of larger orders have been picked and packed.

I’m aware this will need custom liquid, if indeed there is a solution for this.