As much as possible, we try to hide logic in the models so that external code doesn't have to do their own filtering -- could you please make a method in `CourseEnrollment` that returns a defaultdict (defaulting to 0) mapping mode names to their enrollment counts?