There is no variable in the Variable Table that counts them. There is a Block Table that you can place that will count and label the blocks and their occurences for you. Not sure if that will work for your needs. If it doesn't, then you are probably looking at some automation code.
I agree with Ken; perhaps we were answering in real time.
I was able to quickly cook up the attached macro that simply lists the count of each block in a draft document.
A basic test on the sample seddasc.dft in the Training folder shows the counts are matching with those in the Block Table (though not sure why the order differs, neither appears to be sorted).
Source code is available if you need.
Further, adding each count as a variable would be a piece of cake.
I don't think that you can use it as a variable, but you can use it as a Reference text.
Here is an example:
actually just tested it out and it turns out not to be of that much help ... the table doesn't auto-update afer placing a new block I have to add the block to the table manually and the property text is also random so I can't use it in a template to always count a certain block that will be placed repeatedly on a drawing
is there any other element that I can easely count with a variable or property text ?
the drawing I make have 2 symbols on the an SC and a CC that are conditions placed on different dimensions.
these need to be counted and the numer writen down in the border.
I could work with pictures texts or anything else that can be counted and will updated withoud needing to count manually
The attached macro will create and/or update variables for each block with its count as value in the format:
The macro will not work automatically when you create/delete block references, It needs to be run every time to update the variables.
Variable will not be created for blocks whose names are invalid variable names. For e.g. a block name can contain spaces but a variable name cannot, so this block will not have a variable created by the macro.
The variables are pre-exposed.
Feel free to ask for any modification or enhancements to the macro or its source code.
If the macro is working for and you find it useful, mark the post as accepted solution.