Dapatkan Hitungan Hasil Berdasarkan Kelompok Laravel

$getUserCountries = User::select('country', DB::raw('count(*) as count'))
                          ->groupBy('country')
                          ->get()->
                          toArray();
Isaac