SciPy

numpy.record.size

record.size

number of elements in the gentype