Handy function to calculate count of values given in a list or vector
Counter(data, sort = TRUE, decreasing = FALSE)
should be a vector or list of input values
a logical value, to sort the result or not
a logical value, the order of sorting to be followed
count of values in a list