For $x^2 + 2x + 5$ to be a factor of $x^4 + px^2 + q$, the original answer can be expressed as two integers $m$ and $n$ for the values of $p$ and $q$, respectively. Please find the value of $m + n$.

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