Display counter only if there is a page