pub fn nan_count(array: &dyn Array) -> VortexResult<usize>
Computes the number of NaN values in the array.