impl ForEachDocInPage and ApproxPageCount