get_count_from_index