title: How do I get the count in mongoDB through Spring Boot?
body: <p>I am new to MongoDB, so please cooperate if I ask something stupid.
  please refer the below table </p>
  
  <pre><code>status:"Failure"
  key:object
     accountID:"AKRRTTY"
  </code></pre>
  
  <p>Can anyone tell me how can I find the counts of status according to the acountID (which is the sub-object of the key)?</p>
  
  <p>The status can be of different types:
  such as <code>Processed</code>,<code>Blocked</code> etc</p>