How to iterate through a string

For the word "technology",

Eg t-1

e-1

c-1

I need character count of unique elements of this string

  Discussion posts and replies are publicly visible