Jak znaleźć liczbę liczb w Pythonie

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