The number of rectangles in an m x n grid is given by (m(m+1)/2) * (n(n+1)/2). For a 3x2 grid, this is (3*4/2) * (2*3/2) = 6 * 3 = 18. The figure shown is not a simple grid, requiring manual counting.