Seems like it would look something like this.
If FldA <> holdFldA // break on field change
holdFldA = FldA
Eval TotCnt = *zero
Eval TotCnt += 1
Sorry the editor is having more fun with me <> above should be the symbols for not equal to