Function to return frequency table
get_frequency_table(v)
v
a vector
frequency table
get_frequency_table(c(1, 1, 1, 12, 2))