replacing placholders with actual page counts and times