Note that if $a_{k-1} = a_k$, then $a_{k+2} = 0$, and if $|a_k - a_{k-1}| = 1$, then $a_{k+2} = a_{k+1}$, and $a_{k+4} = 0$. Therefore the sequence contains a term of $0$ if $(a_1, a_2, a_3)$ has one of the forms $(j, j, k)$, $(j, k, k)$, $(j, j+1, k)$, $(j, k, k+1)$, $(j, j-1, k)$, or $(j, k, k-1)$. There are $100$ triples with each of the first two forms and $90$ triples with each of the other four forms, for a total of $2 \cdot 100 + 4 \cdot 90 = 560$. However, the $10$ triples of the form $(j, j, j)$, the $9$ triples of each of the forms $(j, j, j+1)$, $(j, j+1, j)$, $(j, j+1, j+1)$, $(j, j, j-1)$, $(j, j-1, j)$, and $(j, j-1, j-1)$, and the $8$ triples of each of the forms $(j, j+1, j+2)$ and $(j, j-1, j-2)$ have each been counted twice, so there are $560 - 10 - 6 \cdot 9 - 2 \cdot 8 = 480$ triples of one of these forms. In addition, if $(a_1, a_2, a_3) = (j, j+2, 1)$ or $(j, j-2, 1)$, then $a_4 = 2$, $a_4 - a_3 = 1$, and $a_8 = 0$. There are $8$ triples of each of these forms, but $(3, 1, 1)$ and $(4, 2, 1)$ have already been counted. Thus there are at least $480 + 8 + 6 = 494$ sequences that contain a term of $0$. To see that there are no other possibilities, note first that if $|a_2 - a_1| \geqslant 2$, $|a_3 - a_2| \geqslant 2$, and $a_3 \geqslant 2$, then $a_4 \geqslant 2a_3 > a_3$, and $|a_4 - a_3| \geqslant a_3 \geqslant 2$. The same argument then establishes that $a_k > a_{k-1}$ for $k \geqslant 4$, so $a_k \ne 0$ for all $k$. Further, if $|a_2 - a_1| = m \geqslant 3$, $|a_3 - a_2| \geqslant 2$, and $a_3 = 1$, then $a_4 = m \geqslant 3$ and $|a_4 - a_3| = m - 1 \geqslant 2$. As above, $a_k > a_{k-1}$ for $k \geqslant 4$. Therefore the number of sequences that contain a term of $0$ is $494$.