The answer is "the number of sleeping students" is dependent variable.
A dependent variable is the variable being tried and estimated in a scientific investigation as in the given case it is the students while an independent variable is the variable that is changed or controlled in the experiment to test the impacts on the dependent variable which in the given case are the number of students.