Display maxPages in the footerTemplate
Display counter only if there is a page
Fix CSS of maxPages label in footer; too high and needless relative position