Fixed calculation of number of pages for "-a" option