Hi,
You can calculate this using the following expression.
Add a whole number field to the data source. And in the default value field, use count function. Double click to insert a field, select the repeating node. Click on Filter data. There select the drop down field is equal to ‘the name you want to count'. Click ok.