To indicate the frequency for each time, count the number of tally/lines for each time.
Thus, for 4 we have 8 students. For 5, we have 10 students. And for 6, we have 10 students as well.
Note that the total of 8, 10, and 10 is 28 which is the total number of students.