Added get_class_count_by_range and subclass_count