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