I have an array containing associative subarrays with keys and value pairs.
The array is in following format:
$info = [
    ['name1' => 'type1', 'count' => '27'],
    ['name1' => 'Type2', 'count' => '11'],
    ['name1' => 'Type1', 'count' => '5'],
    ['name1' => 'Type1', 'count' => '12'],
    ['name1' => 'type2', 'count' => '10']
];
How can I sum the values in the "count" key for each value of the "name1" key, so I would get a result with counts like this?
 ['type1' => 44, 'type2' => 22]