title: Count number of iterations in a foreach loop
body: <p>How to calculate how many items in a foreach?</p>
  
  <p>I want to count total rows.</p>
  
  <pre><code>foreach ($Contents as $item) {
      $item[number];// if there are 15 $item[number] in this foreach, I want get the value : 15
  }
  </code></pre>