Frequency table using list