Number of Rectangles in nxn Squares