Obtenga el recuento de resultados basados en Groupby Laravel
$getUserCountries = User::select('country', DB::raw('count(*) as count'))
->groupBy('country')
->get()->
toArray();
Isaac