Counting squares



Square Puzzle.

Count how many squares are there in this picture ?






Answer is 40