def _get_n_moments(order):
 order = np.asarray(order, int)
 return ((order + 2) * order)

def _get_n_moments ( order ) : order = np . asarray ( order , int ) return ( ( order + 2 ) * order )
compute the number of multipolar moments .