Let $G$ be the group of all $2\times 2$ matrices \begin{bmatrix}a&b\\c&d\end{bmatrix} where $a,b,c,d$ are integers modulo $p$ for $p$ prime such that $ad-bc\not =0$.$G$ forms a group relative to multiplication. Then how do I find the order of $G$?
I really don't know how to proceed. All I could try is look at $p=3$. So, I tried to count the number of solutions to $ad-bc=0 \bmod p$ manually by squaring and adding the number of solutions to $ad=0 \bmod p$, $ad=1 \bmod p$, $ad=2 \bmod p$.Let that sum be $k$. Then the order of $G$ is $3^4-k=81-k$. The same method however does not work with a general prime $p$. Would someone give me a hint to solve this problem? Thanks.