Try:
Sub Demo()
Application.ScreenUpdating = False
Dim r As Long, c As Long, w As Long, i As Long, j As Long
With ActiveDocument.Tables(1)
For r = 1 To .Rows.Count
For c = 1 To 3 Step 2
With .Cell(r, c).Range
i = 0
For w = 1 To .Words.Count
With .Words(w)
If .HighlightColorIndex = wdYellow Then
If .Characters.First Like "[0-9A-Za-z]" Then i = i + 1
End If
End With
Next
End With
With .Cell(r, c + 1)
.Range.Text = i
If c = 1 Then
j = i
ElseIf i = j Then
.Shading.BackgroundPatternColorIndex = wdNoHighlight
.Range.Words(1).HighlightColorIndex = wdNoHighlight
ElseIf i <> j Then
.Shading.BackgroundPatternColorIndex = wdYellow
.Range.Words(1).HighlightColorIndex = wdWhite
End If
End With
Next
Next
End With
Application.ScreenUpdating = True
End Sub