How many ways are there to choose 3 squares in a row from an 8 by 8 chessboard? The squares can be in a row horizontally, vertically, or diagonally.