ways of choosing which two rows, same number of ways of choosing which two columns, total of rectangles.

That assumes that the rectangles have sides parallel to the sides of the board. If you are not making that assumption then there will be many other possibilities, such as when the four squares are a knight's move from their neighbours.