Added xpath to retrieve number of pages