count NaN as a non-value