Count The Squares

 

How many squares of different sizes are in the following figure?