COMC 2017 A Problem 3

Two 1 \times 1 squares are removed from a 5 \times 5 grid as shown.

Determine the total number of squares of various sizes on the grid.