Provided support to get the number of pages