9. In a $4 \times 4$ table, place 4 chess pieces such that each row, each column, and each diagonal contains exactly 1 piece. How many ways are there to do this?

Place the above text in English, preserving the original text's line breaks and format, and output the translation result directly.