Below is an array of dictionaries:
[{name:'v1', count:1}, {name:'v1', count:1}, {name:'v2', count:1}, {name:'v2', count:1}]
I'm looking to sum up the counts for each name and create a new dictionary like this:
[{name:'v1', count:2}, {name:'v2', count:2}]