Find the number of ways one can put numbers $1$ or $2$ in each cell of an $8\times 8$ chessboard in such a way that the sum of the numbers in each column and in each row is an odd number. (Two ways are considered different if the number in some cell in the first way is different from the number in the cell situated in the corresponding position in the second way)