I need to count the separate occasions that something occurs. For example, instead of counting the number of 'A's and returning the number 3, it would count the first two 'A's as one instance and the third 'A' as the second instance and return a number of 2. Is this possible?