I have a listbox with a series of elements and I would like to know the code to find the times that an element repeats, for example:
producto A
producto A
producto A
producto A
producto B
producto B
save in variables that the frequency of A
is 4 and the frequency of B
is 2.