prints out frequencies