Pad them digits 

Calculates the base 10 log of the page count and pads the filenames' page numbers appropriately.