I am working with a JavaScript array that has a length of 129.
var fullnames = [Karri, Ismo, Grigori, Ahmed, Roope, Arto .....]
My goal is to determine how many times each name appears in the array and store that information in another array like this:
var counter = [2, 5, 7, ..]
For example, if Karri appeared in the fullnames
array 2 times, Ismo appeared 5 times, and so on. Does anyone have any suggestions on how to achieve this?