How to count all unique character frequency in a string?

counter from the DataStructures package would be an option as well and should be equivalent in performance to the hand-made solution.

using DataStructures
s = "hello"
counter(s)
2 Likes