Pagination count works with arbitrary connection types