title: mongodb get filtered count
body: <p>I have no extended knowledge on how to create mongodb queries, but I wanted to ask how could I  query collection get something like this:</p>
  
  <pre><code>{
      Total: 1000,
      Filtered: 459,
      DocumentArray: []
  }
  </code></pre>
  
  <p>Of course doing that in one query, so I do not need to do something like this:</p>
  
  <pre><code>db.collection.find();
  db.collection.find().count();
  db.colection.count(); 
  </code></pre>