# Counting Squares!

In the $$4 \times 4$$ grid, how many squares have all 4 vertices on these dots?

Bonus: Generalize this for $$n \times n$$ grid.

×