Get current node's count (rank/order?) from node.tpl in a View which renders a list of nodes I have a view that lists multiple article nodes.
Now for each rendered node, I want to be able to know its rank/order from the list of displayed nodes.

Here's a visual representation:

[view]
    [node.tpl] $count=1 [/node.tpl]
    [node.tpl] $count=2 [/node.tpl]
    [node.tpl] $count=3 [/node.tpl]
    [node.tpl] $count=4 [/node.tpl]
    ...
[/view]


For the first rendered node, I will be able to access a variable called $count whose value is set to 1 because it's the first and so on.

Btw, I'm using Rendered entity so I'm using node.tpl not views/rows templates
Ok it looks like there's a similar thread but worded differently.

How to add classes to every X number of node in a array