MBS-5742: use form.field.value.size instead of an explicit counter