title: Spring mongodb count all documents in collection
body: <p>I want to create method to count all documents in collection using @query</p>
  <p>For example</p>
  <pre><code>@query(&quot;db.collection.count()&quot;)
  Long countAllDocuments;
  </code></pre>