How many rectangles are there in the given figure?
7
6
8
5
In the given figure, there are 7 distinct rectangles visible when counting the overlapping and separate rectangles within the shape.