Find the number of rectangles in the given figure.
8
17
18
20
4 thin rectangles + 6 thick rectangles + 5 rectangles (made of 2 thick rectangles) + 2 rectangles (made of 3 thick rectangles) + 1 rectangle (made of 4 thick rectangles) = 18 rectangles.