title: Laravel count(): Parameter must be an array or an object that implements Countable
body: <p>In wamp I am migrating laravel project. when i run this command in composer-</p>
  
  <pre><code>php artisan migrate --seed
  </code></pre>
  
  <p>It shows this error:</p>
  
  <blockquote>
    <p>In Builder.php line 936: count(): Parameter must be an array or an
    object that implements Countable</p>
  </blockquote>
  
  <p><a href="http://prntscr.com/j47gzs" rel="nofollow noreferrer">http://prntscr.com/j47gzs</a></p>
  
  <p>This is php 7.2 error but I am using php 7.1 version but still getting count error.</p>
  
  <p>Please help fixing it.</p>