X is a DOUBLE type scalar, vector or matrix.
includeNull is a BOOLEAN.
An aggregate function that counts the number of NaN values and Inf values in X. When includeNull = true, the result includes the number of NULL values. The default value is false.
Related function: isNanInf