Made an if statement to return different counts to the student and teacher sections.