Here’s a way to count the blocks in your drawing.
Use the command BCOUNT and you can individually select blocks, use a window selection or type ALL at the command line and every block in your drawing will be selected. After you make your selection set, hit <enter> and in the command line, a list will show the name of the block and the number of occurrences the block either appears in your selection set or if you entered “ALL,” it will show how many times every block appears in your drawing.
To see a more full list, hit F2 and a window will pop up. This window is your command line in a bigger format and it allows you to see your command history more easily. And in this case, allows you to see your list of blocks better.
From this list you can select the list and copy and paste it into a text editor if you needed a text file of your blocks (just an idea…)
(I promise, that when I figure out how to post code using the blog editor, I will post some AutoLISP/VisualLISP codes that do a better job at counting blocks)