The number of distinct pairs \((x,y)\) of real numbers satisfying both of the following equations: 
\[ \begin{align*} x &= x^2 + y^2, \\ y &= 2xy \end{align*} \]
is \(\underline{\phantom{4}}\).

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