title: Count values in $_POST
body: <p>I have the weirdest problem. I need to count how many values are submitted via $_POST in PHP.<br>
  I tried <code>count($_POST['posted'])</code> and I keep on getting 1 instead of 30+ expected values. </p>
  
  <p>I checked if it is an array and yes it is! Tried; <code>print_r($_POST);</code> and get values</p>
  
  <blockquote>
    <p>Array( ['posted'] => asdasd asdasd ...
    asdasd )</p>
  </blockquote>
  
  <p>What am I missing?</p>
  
  <hr>
  
  <p>UPDATE: </p>
  
  <pre><code>$count = count($_POST);
  echo $count.' --- ';
  print_r($_POST);
  </code></pre>
  
  <p>Output: </p>
  
  <blockquote>
    <p>1 --- Array ( [posted] => asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd asdasd ) </p>
  </blockquote>
  
  <p>...and </p>
  
  <pre><code>var_dump($_POST);
  </code></pre>
  
  <p>produces:</p>
  
  <blockquote>
    <p>array(1) { ["posted"]=> string(152)
    "asdasd asdasd asdasd asdasd asdasd
    asdasd asdasd asdasd asdasd asdasd
    asdasd asdasd asdasd asdasd asdasd
    asdasd asdasd asdasd asdasd " }</p>
  </blockquote>
  
  <p>and finally...</p>
  
  <pre><code>var_export($_POST);
  </code></pre>
  
  <p>delivers:</p>
  
  <blockquote>
    <p>array ( 'posted' => 'asdasd asdasd
    asdasd asdasd asdasd asdasd asdasd
    asdasd asdasd asdasd asdasd asdasd
    asdasd asdasd asdasd asdasd asdasd
    asdasd asdasd ', )</p>
  </blockquote>