A new method to calculate the number of black holes...Scuola Internazionale Superiore di Studi Avanzati