In a certain school, the principal wants to distribute $120$ candies among the students. If each student is to receive an equal number of candies, and there are a total of $x$ students, the candies must be distributed such that there is no remainder. If $x$ is an integer that divides $120$ exactly, how many different values can $x$ take?