Contagem de valor da matriz NP

unique_elements, counts_elements = np.unique(a, return_counts=True)
ashattack