Text this: Counting All Lattice Rectangles in the Square Grid in Near-Linear Time