Add frequency table generation utility.