I could count to 12 (update! actually it was 11). But the answer given is 14. For a vertical rectangle, there are 6 rectangles in it as drawn by me. Same is the case for horizontal rectangle except the middle common rectangle. So I did
$6 * 2 - 1 = 12 - 1$ (common) $= 11$
Can you count 14 rectangles?