Rectangles in the given figure can be counted as given below,
Therefore, there are total 9 rectangles.
Note: For any quadrilateral to be a rectangle there are two conditions:
1) The angle between two adjacent line should be 90 degree.
2) Opposite sides should be equals.
3) Square satisfied both these conditions.
4) Square are subset of rectangle.
Hence, all the squares are rectangle but all the rectangles are not square.