We have three cases: numbers that have three $8$, number that have two $8$ and numbers that have one $8$.
There's only one number with three $8$: $888$.
With two $8$, we have _ _ _ three spots to put them, thus $\binom{3}{2} = 3$ options. After that, we have to choose between 9 items ($0$ through $9$, but not the $8$) to put in the remaining place (we're covering two-digit numbers -i.e, the 88- when we choose $0$ for the first spot). So there are $3 \cdot 9 = 27$ of these.
With only one eight, we have to choose its place from three options _ _ _, then choose the other two numbers with $9$ options in each step (again $0$ through $9$, but not $8$), so $3 \cdot 9 \cdot 9 = 243$ numbers.
So we wrote the $8$ exactly $1\cdot3 + 27\cdot2 + 243\cdot1 = 300$ times.