Frequency Counter Algorithm Pattern(Go Example)

Image from Shutterstock

Why should we use it?