/** * Counts the number of courses in a given course category * @param string $categoryCode Category code * @param $searchTerm * @return int Count of courses */ public function count_courses_in_category($categoryCode, $searchTerm = '') { return CourseCategory::countCoursesInCategory($categoryCode, $searchTerm); }