You only counted the number of squares on the outside of the figure, but the area of the figure includes all the squares that cover the figure.