title: PHP count() counts text array as single element
body: <p>I am running PHP 7.0.22, under LAMP, on two ubuntu 16.04.</p>
  
  <p>My PHP code is as follows</p>
  
  <pre><code>    $str="ls -1 /var/www/dropbox | egrep '*.CEL|*.cel'";
      $result= explode(PHP_EOL, shell_exec($str));
      $fileNames=$result;
      print_r($fileNames);
      echo "&lt;br&gt;";
      $inputFileCount=count($fileNames,1);
      echo "&lt;br&gt;";
      echo "File count:" . print_r($inputFileCount);
      echo "&lt;br&gt;";
  </code></pre>
  
  <p>I get the following on the screen</p>
  
  <pre><code>Array ( [0] =&gt; prefix1.cel [1] =&gt; prefix12.cel [2] =&gt; ) 
  
  File count:1
  </code></pre>
  
  <p>It seems to me that the count should be 2.</p>