used a method to display number of students