Unhandled Exception

Message:

count(): Parameter must be an array or an object that implements Countable

Location:

/home/juabara/fotosdepeixe.com.br/laravel/paginator.php on line 391

Stack Trace:

#0 /home/juabara/fotosdepeixe.com.br/laravel/laravel.php(40): Laravel\Error::native(2, 'count(): Parame...', '/home/juabara/f...', 391)
#1 [internal function]: Laravel\{closure}(2, 'count(): Parame...', '/home/juabara/f...', 391, Array)
#2 /home/juabara/fotosdepeixe.com.br/laravel/paginator.php(391): count(NULL)
#3 /home/juabara/fotosdepeixe.com.br/laravel/paginator.php(373): Laravel\Paginator->appendage(NULL)
#4 /home/juabara/fotosdepeixe.com.br/laravel/paginator.php(356): Laravel\Paginator->link(2, 2, NULL)
#5 /home/juabara/fotosdepeixe.com.br/laravel/paginator.php(179): Laravel\Paginator->range(1, 2)
#6 /home/juabara/fotosdepeixe.com.br/laravel/view.php(366) : eval()'d code(49): Laravel\Paginator->links()
#7 /home/juabara/fotosdepeixe.com.br/laravel/view.php(366): eval()
#8 /home/juabara/fotosdepeixe.com.br/laravel/blade.php(71): Laravel\View->get()
#9 [internal function]: Laravel\Blade::Laravel\{closure}(Object(Laravel\View))
#10 /home/juabara/fotosdepeixe.com.br/laravel/event.php(199): call_user_func_array(Object(Closure), Array)
#11 /home/juabara/fotosdepeixe.com.br/laravel/event.php(138): Laravel\Event::fire('laravel.view.en...', Array, true)
#12 /home/juabara/fotosdepeixe.com.br/laravel/view.php(337): Laravel\Event::until('laravel.view.en...', Array)
#13 /home/juabara/fotosdepeixe.com.br/laravel/view.php(570): Laravel\View->render()
#14 /home/juabara/fotosdepeixe.com.br/laravel/response.php(246): Laravel\View->__toString()
#15 /home/juabara/fotosdepeixe.com.br/laravel/laravel.php(178): Laravel\Response->render()
#16 /home/juabara/fotosdepeixe.com.br/public/index.php(34): require('/home/juabara/f...')
#17 {main}