title: Partial collection counter alias
body: <p>Rails can render partial collection with counter:</p>
  
  <pre><code>= render partial: 'item', collection: @items
  </code></pre>
  
  <p>inside _<code>item.html</code>, rails provides iteration counter for the <code>items</code>. (<a href="http://api.rubyonrails.org/classes/ActionView/PartialRenderer.html" rel="nofollow">here</a>)</p>
  
  <pre><code>= item_counter
  </code></pre>
  
  <p>How to make an alias for <code>item_counter</code> e.g. <code>partial_counter</code>? Or anything that will make it become more DRY? It's quite ineffisient writing <code>item_counter, product_counter, category_counter, user_counter, ...</code>. thx</p>