Why does $\frac{\mathbb{Z}_5[x]}{\langle x^2+x+1\rangle}$ have $25$ elements, but $\frac{\mathbb{Z}_5[x]}{\langle x-1\rangle}$ have $5$ elements? I understand this must come from the degrees of the polynomials generating these ideals, but I don't fully understand how.
Any help appreciated!