a version to plot frequency of calls