check for total classes