UKMT: How Many Squares?

Screen Shot 2021-02-10 at 11.45.27.png

How many squares of any size are there in this 8 x 8 grid?