added a way of reading the total page numbers :P