## Hamming weight - Matrices

The Hamming weight of a matrix $A$ with entries from a finite field $F_q$ is the number of non-zero entries in $A$.

Find the number of matrices with entries from $F_q$ having the Hamming weight $d$ .