So, is the above XPath getting you the correct count of all rows? If so, you can just add a filter:
count(../../my:repeatingGroup/my:repeatingTable/my:uomRepeatingTable[my:ColumName = 'Smith'])
But instead of ColumnName above, you'd use the actual name of the field that would contain "Smith".