You can count objects within a drawing using the QSELECT command.
The QSELECT command displays the Quick Select dialog box, which allows you to create a selection set based on the filtering criteria. You can filter selection sets by property such as color or linetype, and by object type.
Creating a selection set based on the filtering criteria in the Quick Select dialog box, allows you to count specified types of objects within a drawing.