Let A be a matrix of order $2 \times 2$, whose entries are from the set $\{0,1,2,3,4,5\}$. If the sum of all the entries of A is a prime number $p, 2 < p < 8$, then the number of such matrices A is _________.