Issue: you want to count how many block in the cad drawing.
Solution:
There are four ways to count the blocks in CAD software:
1. Command BCOUNT
2. Command BLOCKSUM
3. Command eattext, extract data of the block with its name and account.
4. Qselct> Object type=Block Reference(color=Bylayer)> OK> F2 key to see how many block is selected.