PagedQuery now handles correctly long counts