Conteo número de elementos en la matriz multidimensional Python

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