Issue at hand:
var rawData = [[two],[three],[four],[one],[two],[two],[two],[three],[four],[five],[three],[four],[five]];
Given an array of arrays, the goal is to identify the unique elements within one of the arrays and provide a count of each unique element, presenting the results in two separate arrays as follows:
var uniqueList = [one,two,three,four,five...]
var count = [countOfOne, countOfTwo, countOfThree, countOfFour, countOfFive...]
(It should be noted that rawData is subject to change as data is sourced from a large spreadsheet.) What would be the most effective method to accomplish this task?