A text or attribute for total number of a particular block can be updated with technique's in this lisp:
http://www.theswamp.org/index.php?topic=40880.msg461743#msg461743Although it is only dealing with erased objects it can be made to count added objects as well.
Adding this sub and modifying the main lisp.
(defun _ObjAdded (a b / nent)
(if (and *CommandFlag* (= InsertName TargetName))
(progn
;; increment a variable for the insert count
)
)
)
What I am giving you are the bones of the routine and much work is needed to complete it.
There are other reactor that may work too.
The premise here is that the start command reactor clears a counter variable and it is updated by the
ADD and ERASE reactors. Then the command END reactor would update the TEXT with a new value.
Not addressed or explored here are the OOPS and UNDO commands.
Another option is to simple count the INSERTS each time a command is used but filter for commands
that would modify the database like COPY PASTE ERASE INSERT OOPS & UNDO.