title: MongoDB - How to get the count for a find query
body: <p>I cannot for the life of me find out how to get a count for a find query using the java driver in mongo db. Can someone please put me out of my misery?</p>
  
  <p>I have the following:</p>
  
  <pre><code>MongoCursor&lt;Document&gt; findRes = collection.find().iterator();
  </code></pre>
  
  <p>But there is no count method that I can find anywhere.</p>