multiple permutations

any suggestions on an efficient way to get all the permutations of below

if a.Option3_Value="" and a.Option2_Value="" and a.Option1_Value ="" then numOfOptions=0
if a.Option3_Value="" and a.Option2_Value="" and a.Option1_Value <>"" then numOfOptions=1
if a.Option3_Value="" and a.Option2_Value<>"" and a.Option1_Value ="" then numOfOptions=1
if a.Option3_Value<>"" and a.Option2_Value="" and a.Option1_Value ="" then numOfOptions=1

etc

if a.Option1_Value <> "" then
  numOfOptions = numOfOptions + 1
end if
if a.Option2_Value <> "" then
  numOfOptions = numOfOptions + 1
end if
if a.Option3_Value <> "" then
  numOfOptions = numOfOptions + 1
end if

Thanks, Kem.