Counting first occurences

My apologies for not responding.

The solution from Brian was fine. Thanks again.

MG