Le paramètre count () doit être un tableau ou un objet qui implémente Laravel dénombrable
//add a typecast array to the array being called
$count = count((array)$originalArray);
Indian Gooner