Let $n$ be a positive integer. Find the number $a_n$ of polynomials $f(x)$ with coefficients in $\{0, 1, 2, 3\}$ such that $f(2)=n$.