$index+1 in Knockout foreach binding
$index is an observable. So you need to use it this way :
<span data-bind="text: ($index() + 1)"> </span>
$index is an observable. So you need to use it this way :
<span data-bind="text: ($index() + 1)"> </span>