I am aware of some theorem that says that if $M$ is non singular, $\det(M) \neq 0$, then: $$\mathrm{card}(\mathbb{Z}^n/M \mathbb{Z}^n)= |\det(M)|.$$ How does one prove this? Figured if I put in the context of the rational canonical form, this would help, but cant piece it together. Thanks.
This result is mentioned in the first answer of this question: Cardinality of a Quotient Ring.
The standard method for computing the abelian invariants of $\mathbb{Z}^n/M\mathbb{Z}^n$ is to put the matrix $M$ into Smith Normal Form.
This is done by applying a sequence of unimodular transformations to $M$, and these can be effected by pre- or post-multiplying $M$ by a unimodular matrix over $\mathbb{Z}$. These unimodular matrices all have deteminant $\pm 1$, so they do not change $|\det M|$.
At the end of the process, the transformed matrix $M$ is diagonal with entries $d_1,d_2,\ldots,d_n$ (where each $d_i|d_{i+1}$). The determinant of the matrix is now $d_1d_2 \cdots d_n$, and the algorithm proves that $\mathbb{Z}^n/M\mathbb{Z}^n \cong \oplus_{i=1}^n \mathbb{Z}/d_i\mathbb{Z}$, of which the order is also $d_1d_2 \cdots d_n$. QED.