<ol class="porog">
<li>
<span class="porog-number"></span>
<span class="porog-name">Пункт 1</span>
</li>
<li>
<span class="porog-number"></span>
<span class="porog-name">Пункт 2</span>
</li>
<li>
<span class="porog-number"></span>
<span class="porog-name">Пункт 3</span>
</li>
<li>
<span class="porog-number"></span>
<span class="porog-name">Пункт 4</span>
</li>
</ol>
var el_counter=1;
$('ol.porog li .porog-number').each(function(){
$(this).text(el_counter);
el_counter+=1;
});