$array = [
[
'player_id' => 1,
'count_goals' => 1
],
[
'player_id' => 1,
'count_goals' => 1
],
[
'player_id' => 1,
'count_goals' => 1
],
[
'player_id' => 1,
'count_goals' => 1
],
];
array(
(int) 0 => array(
'player_id' => '1',
'count_goals' => (int) 3
),
(int) 1 => array(
'player_id' => '1',
'count_goals' => (int) 1
)
)