title: Howto: count between velocity macro's using value from the request
body: <p>i need to count how often a velocity macro is called.</p>
  
  <p>something like:</p>
  
  <pre><code>#macro( doSometing )
  
    #set($counter= $counter + 1)
    i'm used ${counter} times.
  #end
  </code></pre>
  
  <p>i tried to create the var in the jsp first with this:</p>
  
  <pre><code>&lt;c:set var="counter" scope="request"&gt;1&lt;/c:set&gt;
  </code></pre>
  
  <p>but then it will always be 2</p>
  
  <p>ps
  after adding this first:
       #set ($counter = $Integer.parseInt($counter))</p>