student count /w print function