Upgraded from 3.6 to 4. on Heroku. running php >= 7.2 and got the following error
/app/app/vendor/laravel/framework/src/Illuminate/Database/Eloquent/Builder.php [Line 1231] => count(): Parameter must be an array or an object that implements Countable