update options criteria in count query