Find the number of squares in the given picture.

There are 17 squares in the given picture.
If the smallest square is of 1 unit,
Then there are 6 squares of 1 unit side, 8 squares with side 2 unit, 2 squares with ide 3 unit and 1 square with side 4 unit.