[7.x] Significant performance issue in Eloquent Collection loadCount() method (#34177)
[7.x] Significant performance issue in Eloquent Collection loadCount() method (#34177)

* Update Eloquent Collection loadCount() to resolve performance issue

* Update Collection.php

Co-authored-by: Mark O'Keeffe <7ae7aa2acd50110876a9e81684e141fbd646d559@digistorm.com.au>
Co-authored-by: Taylor Otwell <5d74ae093a16a00e5af127763f2dc7e13988f162@laravel.com>
laravel/framework,tomschlick/framework,crynobone/framework,cybercog/framework,driesvints/framework,morrislaptop/framework,dwightwatson/framework,JamesForks/framework,cybercog/framework,mul14/laravel-framework,leo108/laravel_framework,JosephSilber/framework,morrislaptop/framework,bytestream/framework,JamesForks/framework,lucasmichot/framework,hafezdivandari/framework,dwightwatson/framework,lucasmichot/framework,tomschlick/framework,samlev/framework,arturock/framework,mul14/laravel-framework,bytestream/framework,mul14/laravel-framework,crynobone/framework,samlev/framework,driesvints/framework,arturock/framework,leo108/laravel_framework,arturock/framework,mul14/laravel-framework,JosephSilber/framework,notebowl/laravel-framework,notebowl/laravel-framework,hafezdivandari/framework,tomschlick/framework,cybercog/framework,laravel/framework,stevebauman/framework,stevebauman/framework