Added array and student count automation