title: MongoDB aggregation condition translated to JAVA driver
body: <p>I'm relatively new to MongoDB and I'm currently working with java towards a "find by most tags matching" solution to information within a collection.</p>
  
  <p>I'm stuck now trying to translate a MongoDB shell operation to the JAVA driver version (this sintaxis is part of the definitions needed )</p>
  
  <p><code>$cond:[{$eq: ["$tags", 200]}, 1, 0]</code></p>
  
  <p>What would be a correct JAVA implementation for the sentence above?</p>
  
  <p>Thank you in advance</p>