Lei Zhang : sane.ds: Get number of options only once.