title: Error writing shell script in python for mongodb In case of userid call
body: <pre><code>cursor2 = db.BrandScoreHistoryUpdateFinal.find(
          {"UserOid" :ObjectId("55d6e7c0f0639509b4c7a83b")}).count()
  </code></pre>
  
  <p>It should return the count of userid for that particular value but its poping out the error as </p>
  
  <blockquote>
    <p>Name Error: name objectid is not defined.</p>
  </blockquote>
  
  <p>when I tried to use  :</p>
  
  <pre><code>ObjectId("55d6e7c0f0639509b4c7a83b").toString()
  cursor2 = db.BrandScoreHistoryUpdateFinal.find(
          {"UserOid" :ObjectId("55d6e7c0f0639509b4c7a83b")}).count()
  </code></pre>
  
  <p>I have the same error</p>