Como encontrar o número de vezes que um número aparece no Python

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