ADD getAccumulatedFrequency function to the dataset interface.