in reply to Tracking consecutive characters
Using the search bar above, I found the following quick answers to your question:
(jjhorner) Counting Characters
and also
Counting Substrings in Strings