find the occurance of characters in a string using c#
suppose I have the string like
string str="VAARONASSTGSO";
if the same character are appears in sequence then consider their count at once,in above string AA appears in sequence then consider their count at one.
V=1
A=3
R=1
O=2
N=1
S=2
T=1
G=1