Hello!

I want to make a variable based on other variables. The value of the variable would be the number of cells with values other than missing value,

For example,
a1 a2 a3 a4 a5
1 100 2 . .
Then the value of the new variable would be 3 (as there are three cells with any values other than missing values.

Do you have any suggestion on how I could create the variable?

Thank you so much!