get_count_by_index