A $9\times9\times9$ grid of points consists of all points in space of the form $(i,j,k)$, where $i$, $j$, and $k$ are integers between $1$ and $9$, inclusive. Find the number of different lines that contain exactly $6$ of these points.
A line with exactly $6$ points must have a step of size $1$ in each nonzero coordinate (larger steps give at most $5$ points), so directions are like $(1,0,0)$, $(1,1,0)$, $(1,1,1)$ up to signs; for each, count starting points whose line has exactly $6$ points in the grid (checked by direct enumeration).