I am attempting to prove what the title says, that $\mathbb{F}_p[x]/\langle f(x)\rangle$ with $f(x)$ irreducible of degree $n$ is a field with $p^n$ elements.
I have already proven that for any field $K$ and polynomial $f(x)$ in $K[x]$, $K[x]/\langle f(x)\rangle$ is a field if and only if $f(x)$ is irreducible in $K[x]$. So I know that $\mathbb{F}_p[x]/\langle f(x)\rangle$ is a field for sure. Where I'm lost is figuring out how to know for sure that there are $p^n$ elements. It's fairly clear if $n\in\{ 0 ,1\}$, but I don't think induction is going to help.
I know from a proposition in class that since $F_p = \mathbb{Z}/\langle p\rangle$ and $F_p = \mathbb{Z}/\langle p\rangle$ is an integral domain, $F_p[x] = (\mathbb{Z}/\langle p\rangle)[x] = (\mathbb{Z}[x])/(\langle p\rangle[x])$, but I'm not sure whether or not that's helpful information.
Isn't this enough? If $g\in\mathbb{F}_p[x]/f(x)$, then $\max(\deg g) = \deg(f)-1=n-1$. Thus, all elements in $\mathbb{F}_p[x]/f(x)$ are of the form $\sum_{i=0}^{n-1}a_ix^i$, for $a_i\in\mathbb{F}_p$ for all $1\le i\le n-1$. Since $|\mathbb{F}_p|=p$, and there are $n$ coefficients, there are $p^n$ ways to construct a polynomial in $\mathbb{F}_p[x]/f(x)$, so $|\mathbb{F}_p[x]/f(x)|=p^n$.