The number of values in the vector.
This function allows for non-numeric values but ignores any NaN values.