numpy.generic.size

attribute

generic.size

The number of elements in the gentype.