Count the characters in a cookie string using c#
I have a string as follows:
string str1 = Request.Cookies["GE"].Value;
This string could be:
string str1 = "A";
or
string str1 = "AA";
or
string str1 = "AABB";
Using C#, I need to display the count of character as follows:
string str1 = "A"; ===> One
string str1 = "AA"; ===> Two
string str1 = "AABB"; ===> Four
Thanks in advance.