Attendance statistics

move into private method