title: PHP 7.4 - Warning: count(): Parameter must be an array
body: <p>I just upgraded my <strong>PHP Version from 5.6 to 7.4. I used count()</strong> function in my page, example:</p>
  
  <pre><code>$watch_server_count  = count($watch_server);
  if ($watch_server_count &gt; 0) {
      foreach ($watch_server-&gt;table as $key=&gt; $watch_server_rows) {
  
      }
  }
  </code></pre>
  
  <p>Warning: count(): Parameter must be an array or an object that implements Countable in...</p>