PageCount correction

* PageCount was wrong when there is only one page or an empty list