For how many rational numbers $p$ is the area of the triangle formed by the intercepts and vertex of $f(x) = -x^2 + 4px - p + 1$ an integer?

Let's think step by step and output the final answer within \boxed{}.
user