ImperiumTapet - implemented getting number of pages.