My text book had a question to find the no. of rectangles in a chessboard. My attempt was that out of $64$ points if we choose any $4$ points, a rectangle is formed and hence no. of rectangles in $C(64,4)$ [$64$ choose $4$]. But in the book its given, to form a rectangle $2$ vertical and horizontal lines need to be selected, and there are $9$ vertical and horizontal lines, so number of rectangles are $C(9,2)\times C(9,2)$.
$2$ questions: Why is my attempt wrong, and aren't there only $8$ lines in a chessboard? I know its a little basic for Stackexchange level of questions but any answer would be appreciated greatly.