Count Blocks Then Add it as Table

Good day everyone,

This websites shows me exactly what I need, a LISP that counts the block then place it as table, however when I used it it was not working. Is there something I need to change with this code since this looks like it was designed for AutoCAD? Can someone send me a lisp or a website that can make me do something like this? Thank you in advance

https://lee-mac.com/blockcounter.html

 

 




https://autocadtips1.com/2011/03/09/autolisp-block-count-with-a-table/