added method that returns number of students.