What would be the best way to convert an array of dates into an array of unique objects with a count for each date?
Example Array
['07Sep', '09Sep', '14Sep', '05Sep', '12Sep', '06Sep', '10Sep', '14Sep', '08Sep', '10Sep', '04Sep', '05Sep', '07Sep', '08Sep', '13Sep', '12Sep', '05Sep', '05Sep', '06Sep', '10Sep', '06Sep', '13Sep', '05Sep', '06Sep', '05Sep', '04Sep', '12Sep', '05Sep', '11Sep', '10Sep', '11Sep', '06Sep', '04Sep', '10Sep']
Expected output with this structure: (vales are made up)
[
{04SEP:4},
{06SEP:2},
{07SEP:2},
{09SEP:4},
...
]