you might look at the GetAsCSS() function. It return the "formatting" as HTML (and CSS). You might be able to "count" the patterns you desire. Create a calculated field "GetAsCSS(myfield)" and see what it returns and if you then understand what to count.
1. This won't be simple.
2. For starters, have a look at these:
3. There is something wrong with this request; meaningful data should be stored as a value in a field - not as text formatting.
I am not trying to store as formating. I am take Html to text and it left titles bold. Wanted a way to mark the titles. Thats why I am asking.