Frequency distribution table calculator