Loop through dataset and add new column in same dataset that list how many time an item occured in each loop

Unnecessary extra parens, but OK.