How to count squares in N x N grid? I have come across 100s of puzzles where you are asked to count number of squares in a grid image. […]