Cómo encontrar el número de veces que aparece un número en Python

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