Hi,
Try here:
Linq Query to get the count of a value in particular column of datatable - Help / Activities - UiPath Community Forum
dt.AsEnumerable.Count(Function(r) r(“Rep”))