so i have an array like this, that i want to find the unique value with then count:
users:
[ '21000316',
'21000316',
'21000316',
'21000316',
'22000510',
'22000510',
'22000510',
'22000510' ]
is it possible for me to get the unique value and count it from the array without using sort()? and turn it into this value i try some code but only get the count and the unique value separetely:
{'21000316':4,'21000510':4}