Let $X$ be the set consisting of the first 2018 terms of the arithmetic progression $1,6,11 , \ldots$, and $Y$ be the set consisting of the first 2018 terms of the arithmetic progression $9,16,23 , \ldots$. Then, the number of elements in the set $X \cup Y$ is $\_\_\_\_$.