title: Paging MongoDB query with C# drivers
body: <p>I am using version 2.2 of MongoDB drivers for C#.
  I want to paginate a query : the response to the query must contain the items of the current page and the total count of items matching the query.</p>
  
  <p>I want to do one query.
  With the mongo shell I can realize that as it :</p>
  
  <pre><code>var c = db.mycol.find({....}).skip(0).limit(10)
  var total = c.count();
  while (c.hasNext()) {
     print(tojson(c.next()));
  }
  </code></pre>
  
  <p>But with the C# driver, I don't know how to do it with only one query.</p>
  
  <pre><code>var find = collection
    .Find(x =&gt; x.Valid == true)
    .Skip(0)
    .Limit(10);
  
  var cursor = await find.ToCursorAsync(cancellationToken);
  // How to get the count? There is no method in the IAsyncCursor interface.
  </code></pre>
  
  <p>Is it possible ? Some ideas ?</p>