title: FindIterable<Document> how to get total records in a result of a query
body: <p>I was using mongo driver for java 2.x and passed to 3.1.
  <code>DBCursor</code> is deprecated and I had to use the <code>FindIterable&lt;Document&gt;</code> structure.</p>
  
  <p>When I perform a query </p>
  
  <pre><code>FindIterable&lt;Document&gt; cursor=(mongo).getCollection().find(findArgs).limit(10).skip(0);
  </code></pre>
  
  <p><strong>I would like to get the count of the total number of records in the resultset with the query find in only one Query.</strong></p>
  
  <p><strong>How can I retrieve the count without performing another query?</strong>
  I'm not speaking of the 10 records in the limit but of the total number of records.</p>
  
  <p>I want to perform one query to retrieve count and find. I don't want to execute find and count. </p>
  
  <p>Thanks</p>