Totally depends the expertise of the prof and staff and logistical support. Andrew Ng’s Machine Learning class (CS229) at Stanford this quarter has 1040 students enrolled including post doc, doc, masters, seniors, juniors, a couple hundred sophomores, and a single (brave) freshman. Class is uncapped to give students a chance to learn from an AI rock-star.