Add page counts to output.