Use a new session to get a total row count in PagedQuery.