Saad was researching with a number. The number is $2024$ in base $10$. But in base $9$, the number is $\overline{2688}_9$ and its last digit is $8$. How many integers $a$ are there such that the last digit of $2024$, when written in base $a$, is $8$?