What is the total number of matrices that are similar to \begin{pmatrix} 0 & 0 \\ 0 & 1 \end{pmatrix} over $\mathbb{Z}_7$, that is, the finite field on $7$ elements $\{0,1,2,3,4,5,6\}$?
I know that total number of invertible matrices of order $2$ over $\mathbb{Z}_7$ is $2016$. From this how to proceed?
Two matrices in $M_2(\Bbb F_7)$ are similar if and only if they have equal minimal and equal characteristic polynomial, i.e., $A$ is similar to the given matrix if and only if $\operatorname{tr}(A)=1$ and $\det(A)=0$. Now you can count easily the total number of such $A$. Take all matrices $$ \begin{pmatrix} a & b \cr c & 1-a\end{pmatrix} $$ with $a(1-a)=bc$ in $\Bbb F_7$. One has to avoid double counts.