astropy.utils
astropy.utils.masked
Counts the number of non-zero values in the array a.
a
Like numpy.count_nonzero, with masked values counted as 0 or False.
numpy.count_nonzero
False