An integer point of the usual Euclidean $3$-dimensional space is a point whose three coordinates are all integers. A set $S$ of integer points is called a covered set if for all points $A, B$ in $S$ each integer point in the segment $[AB]$ is also in $S$. Determine the maximum number of elements that a covered set can have if it does not contain $2004$ collinear points.