numpy.ndarray.__len__

ndarray.__len__() <==> len(x)