Fix bug where pagination.pageCount was a string instead of a number

@olalonde here is a fix that we needed because in some way we pass pageCount as a String instead a Number.

Thanks for it, works like a charm.