NumPy

numpy.ma.MaskType.size

attribute

MaskType.size

The number of elements in the gentype.