cara membuat tabel frekuensi di python

table = {}
total = 0 
    
for row in dataset:
	total += 1
	value = row[index]
	if values in table: 
		table[value] += 1
	else: 
		table[value] = 1
Cruel Copperhead