This is documentation for an old release of NumPy (version 1.3.). Read this page Search for this page in the documentation of the latest stable release (version > 1.17).
Count the number of masked elements along the given axis.
axis : int, optional
Axis along which to count. If None (default), a flattened version of the array is used.
numpy.ma.count
numpy.ma.getmask