A sample of a paging extension that allow to show only a definite number of pages