Let $P(z)$ be a polynomial in $G$. Because the coefficients of $P(z)$ are real, it follows that the nonreal roots of $P(z)$ must be paired by conjugates; that is, if $a + ib$ is a root, then $a - ib$ is a root as well. In particular, $P(z)$ can be factored into the product of pairwise different linear polynomials of the form $(z - c)$ with $c \in \mathbb{Z}$ and quadratic polynomials of the form $(z - (a + ib))(z - (a - ib)) = z^2 - 2az + (a^2 + b^2)$ with $a, b \in \mathbb{Z}$ and $b \ne 0$. Moreover, the product of the independent terms of these polynomials must be equal to $50$, so each of $a^2 + b^2$ or $c$ must be a factor of $50$. Call these linear or quadratic polynomials basic and for every $d \in \{1, 2, 5, 10, 25, 50\}$, let $B_d$ be the set of basic polynomials with independent term equal to $\pm d$. The equation $a^2 + b^2 = 1$ has a pair of conjugate solutions in integers with $b \ne 0$, namely $(a, b) = (0, \pm 1)$. Thus there is only $1$ basic quadratic polynomial with independent term of magnitude $1$: $(z - i)(z + i) = z^2 + 1$. Similarly, the equation $a^2 + b^2 = 2$ has $2$ pairs of conjugate solutions with $b \ne 0$, $(a, b) = (1, \pm 1)$ and $(-1, \pm 1)$. These give the following $2$ basic polynomials with independent term $\pm 2$: $(z - 1 - i)(z - 1 + i) = z^2 - 2z + 2$ and $(z + 1 + i)(z + 1 - i) = z^2 + 2z + 2$. In the same way the equations $a^2 + b^2 = 5$, $a^2 + b^2 = 10$, $a^2 + b^2 = 25$, and $a^2 + b^2 = 50$ have $4$, $4$, $5$, and $6$ respective pairs of conjugate solutions $(a, b)$. These are $(2, \pm 1), (-2, \pm 1), (1, \pm 2)$, and $(-1, \pm 2)$; $(3, \pm 1), (-3, \pm 1), (1, \pm 3)$, and $(-1, \pm 3)$; $(3, \pm 4), (-3, \pm 4), (4, \pm 3), (-4, \pm 3)$, and $(0, \pm 5)$; and $(7, \pm 1), (-7, \pm 1), (1, \pm 7), (-1, \pm 7), (5, \pm 5)$, and $(-5, \pm 5)$. These generate all possible basic quadratic polynomials with nonreal roots and independent term that divides $50$. The basic linear polynomials with real roots are $z - c$ where $c \in \{\pm 1, \pm 2, \pm 5, \pm 10, \pm 25, \pm 50\}$. Thus the linear basic polynomials contribute $2$ to $|B_d|$. It follows that $|B_1| = 3$, $|B_2| = 4$, $|B_5| = 6$, $|B_{10}| = 6$, $|B_{25}| = 7$, and $|B_{50}| = 8$. Because $P$ has independent term $50$, there are either $8$ choices for a polynomial in $B_{50}$, or $7 \cdot 4$ choices for a product of two polynomials, one in $B_{25}$ and the other in $B_2$, or $6 \cdot 6$ choices for a product of two polynomials, one in $B_{10}$ and the other in $B_5$, or $4 \cdot C_6^2$ choices for a product of three polynomials, one in $B_2$ and the other two in $B_5$. Finally, each of the polynomials $z + 1$ and $z^2 + 1$ in $B_1$ can appear or not in the product, but the presence of the polynomial $z - 1$ is determined by the rest: if the product of the remaining independent terms is $-50$, then it has to be present, and if the product is $50$, then it must not be in the product. Thus, the grand total is \[ 2^2\left(8 + 7 \cdot 4 + 6 \cdot 6 + 4 \cdot C_6^2\right) = 2^2(8 + 28 + 36 + 60) = 4 \cdot 132 = 528. \]