<apex:page controller="counter">
<apex:variable value="{!0}" var="index" />
<apex:pageBlock>
<apex:pageBlockTable value="{!elements}" var="element">
<apex:column>
<apex:outputText>
<apex:variable value="{!index + 1}" var="index" />
{!index}
</apex:outputText>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:page>
apex:repeatループ内に奇数・偶数の判定方法
<table>
<apex:variable var="index" value="0" />
<apex:repeat value="{!rowList}" var="row">
<apex:variable var="index" value="{!(VALUE(index)+1)}"/>
<apex:variable var="rowCls" value="{!IF(mod(VALUE(index),2)==0,'even', 'odd')}"/>
<tr class="{!rowCls}">
<td>Something...</td>
</tr>
</apex:repeat>
</table>