LastPageNumber definition feature.

Add the posibility to define the page number when infinite scroll must finish.