Implements a frequency table using hash functionality.