Let the equation \( x^2 + y^2 + p x + (1 - p) y + 5 = 0 \) represent circles of varying radius \( r \in (0, 5] \). Then the number of elements in the set \( S = \{ q : q = p^2 \text{ and } q \text{ is an integer} \} \) is ____________.