title: Get the count of items inside a drawing in autocad using VBA
body: <p>I am trying to get the number of items present inside the model space.
  If i am not mistaken the <code>Count</code> does that trick, but I am not able to make it work (I might be wrong).</p>
  
  <p>For example, <code>Set entity = ThisDrawing.ModelSpace.Item(0)</code> gets only the first item. and <code>Set entity = ThisDrawing.ModelSpace.Item(0)</code> gets the second. But how to know how many we have ?</p>
  
  <p>I tried <code>ThisDrawing.ModelSpace.Count</code> but it gives the below error when running it. </p>
  
  <p><img src="https://i.stack.imgur.com/roqWw.png" alt="enter image description here"></p>