- use dictionary in counting frequency