Find count of repeating elements in string array

@Gattu_Monika
not knowing all your detailed requirements find following starter help:
Array_ItemOccurence_CountReport.xaml (6.5 KB)

from this array:
string[4] { “AA”, “BB”, “AA”, “CC” }

following statistic datatable is created:
grafik