In the textbook that I am currently learning from, it says that:
Given $F[x]/g(x)$ for some fixed $g(x) \in F[x]$ of degree $d ≥ 1$,
$$F[x]/g(x) = {r(x) + g(x):\ \deg(r) ≤ d − 1}$$
If $F$ is finite, $r(x)$ has $d$ coefficients, each of which has $|F|$ choices. Hence $$|F[x]/g(x)| = |F|^{\deg(g)}$$
My question is: how did we get the "$r(x)$ has $d$ coefficients" statement? There are $d-1$ different $\deg(r)$, and the maximum $\deg$ for $r(x)$ is $d-1$, so what do the $d$ coefficients imply?
Thank you!