Adding loop.count

Ability to use the {{ loop.count }} to get the for loop counter and
cleaning up unnecessary codes