added max class size and course_registrations_count columns to courses
added counter_cache to registrations model