Added total number of pages. #6