title: Iteration counter for double loops
body: <p>I am trying to find the formula to count every iteration of this double <code>for</code> loop (in python for instance):</p>
  
  <pre><code>for i in range(5):
     for j in range(5):
         count = MYSTERIOUS_FORMULA
         print count
  </code></pre>
  
  <p>Here the final value of count should be 25.</p>
  
  <p>I tried <code>count=(i+1)*j</code> but it produce <code>0,1,2,3,4,0,2,4</code> etc.</p>