added student count as variable