Counting blocks inserted in a drawing

I want to summarize a count of all similar blocks inserted several times in the same drawing. Anyone knows how to do it ?