Python comptoir à la liste des tuples

from collections import Counter
result = list(Counter(example).items())
[('apple', 2), ('pear', 1)]
Plif Plouf