How many different rectangles with sides parallel to the grid can be formed by connecting four of the dots in a 5*5 square array of dots, as in the figure below?
(Two rectangles are different if they do not share all four vertices.)
The number of rectangles is 264.