only set count if option is passed