Walter Rudin Exercise 2.2
To prove that the set of all algebraic numbers is countable, the hint provided is that there are finitely many equations of the form $$n+\left|a_0\right|+\left|a_1\right|+\dots+\left|a_n\right|=N. $$ where $a_i$ are coefficients, $n$ is degree of polynomial and $N$ is any positive integer.
How is this analogous to the problem?
Show that for any $n\geqslant 1$, the set of roots of polynomials with integer coefficients of degree exactly $n$ is countable, then use that a countable union of countable sets is countable.