json.extract! @ec_year, :id, :year

json.student_count @ec_year.ec_year_students.count
json.training_subitem_count @ec_year.ec_training_subitems.count
json.graduation_requirement_count @ec_year.ec_graduation_requirements.count
json.course_count @ec_year.ec_courses.count
json.course_target_count @ec_year.ec_course_targets.count
json.graduation_subitem_count @ec_year.ec_graduation_subitems.count