| Thus we see that there are 4 × 2 = 8 rectangles of that size and that orientation. In general, each type of rectangle we wish to count leads to a rectangular display of possible top left corners. These rectangles vary from a 1 × 1 square of top left corners (counting the large four-by-four square), to a 4 × 2 rectangle (counting the one-by-three rectangles as shown above, and a 2 × 4 rectangle counting the triplets that run vertically), to a 4 × 4 square display (counting the sixteen one-by-one squares). Thus the total number of rectangles in the diagram is: |