How many squares are there?

How many squares are there?

How many squares are there in the image?

Find the solution here: Solution