Contagem número de elementos em Python de matriz multidimensional

import numpy as np
size = 1
for dim in np.shape(a): size *= dim
Xerothermic Xenomorph