Comment trouver le nombre de fois qu'un nombre apparaît dans Python

dict((i, a.count(i)) for i in a)
Itchy Ibis