How many rectangles or squares are there in the following diagram?