title: How to count total number of student based on multiple and conditions
body: <p>I want to get count of students based on multiple "and" condition
  eg: Count number of students where student not in 10th class and student_in ["A", "B"] Grade and students subject is maths.</p>
  
  <p>I have already tried with aggregation query but don't know how to make and condition it it</p>
  
  <pre><code>'{"aggs": {"num_of_students": {"terms": {"field": "student"}}}}'
  </code></pre>
  
  <p>Please help.</p>
  
  <p>Expected Result: count number of students based on "and" condition.
  Actual Result: Getting number of all students.</p>