Hidden rectangles

Rectangles are considered different if they vary in size or have different locations. How many different rectangles can be drawn on a chessboard?

Problem

 

Image
Hidden Rectangles

 

Rectangles are considered different if they vary in size or have different locations.

How many different rectangles can be drawn along the lines on a chessboard?

How many of the rectangles are squares?

What happens on an n by n board?