In the given figure, the number of squares includes both smaller and larger squares. There are 9 smaller squares and 3 larger squares formed by combining the smaller ones. Thus, the total number of squares is: