count the occurrences of items in list `l`,"[[x, l.count(x)] for x in set(l)]"