Counting All Lattice Rectangles in the Square Grid in Near-Linear Time (ArXiv cs.CG Recent Papers, 2026)