def sumOfStudents(students): count = sum( [ len(listElem) for listElem in students]) return count sumOfStudents(students)