Let $p$ be an odd prime number and $T_p$ be the following set of $2 \times 2$ matrices: $T_p = \left\{ A = \begin{bmatrix} a & b \\ c & a \end{bmatrix} : a, b, c \in \{0, 1, 2, \dots, p-1\} \right\}$. The number of $A$ in $T_p$ such that $A$ is either symmetric or skew-symmetric or both, and $\det(A)$ divisible by $p$ is -