title: Limiting Query result in MongoDB
body: <p>I have 20,000+ documents in my mongodb. I just learnt that you cannot query them all in one go.</p>
  
  <p>So my question is this:</p>
  
  <p>I want to get my document using <code>find(query)</code> then limit its results for 3 documents only and I can choose where those documents start from.</p>
  
  <p>For example if my <code>find()</code> query resulted in 8 documents :</p>
  
  <pre><code>[{doc1}, {doc2}, {doc3}, {doc4}, {doc5}, {doc6}, {doc7}, {doc 8}]
  </code></pre>
  
  <p>command <code>limit(2, 3)</code> will gives <code>[doc3, doc4, doc5]</code></p>
  
  <p>And I also need to get total count for all that result(without limit) for example : <code>length()</code> will give <code>8</code> (the number of total document resulted from <code>find()</code> function) </p>
  
  <p>Any suggestion? Thanks</p>