SciPy

numpy.ma.MaskType.size

MaskType.size

number of elements in the gentype