Brain Teaser for July 29th, 2022

How many squares are there?

Answer: There are 40 total squares.