Count the number of triangles and squares in the following figure :
Find the number of squares and triangles in the given figure.