added get_optionsets_count