NumPy

numpy.record.size

attribute

record.size

number of elements in the gentype