I want to find the number of elements in $GL_2(\mathbb Z_p)$, where $p$ is a prime.
The first row can be chosen in $p^2-1$ ways as we can not take both zeros. The second row must be chosen in such a way that it is not a linear combination of the first. Total number of rows those are linear combinations of the first row is $p$. Thus total possibilities for the second row is $p^2-p$. Thus $|GL_2(\mathbb Z_p)|=(p^2-1)(p^2-p)$. Am I right?