Added method for retrieving page count.