You could pass it as parameter to the helper:
@helper Text(int i) {
}
and then:
@{
int i = 0;
}
@SomeHelper.Text(i)
or you could simply use editor templates which will take care of everything and get rid of those helpers. For example:
@Html.EditorFor(x => x.Ans)