title: How to count specific no of items in Postman response
body: <p>I am new to postman. I have response and I want to count how many items with equipment_id =53
  Here is my code which I tried but I couldn't see any output in console.</p>
  <h1>Response</h1>
  <pre><code>[
      {
          &quot;id&quot;: 373,
          &quot;user_id&quot;: 119118855,
          &quot;location_id&quot;: 9999,
          &quot;duration&quot;: 0,
          &quot;watts&quot;: 0,
          &quot;timestamp&quot;: &quot;2019-07-12T00:00:00.000Z&quot;,
          &quot;equipment_id&quot;: 53,
          &quot;name&quot;: &quot;10 Ride&quot;,
          &quot;equipment_name&quot;: &quot;Bike2&quot;
      },
      {
          &quot;id&quot;: 376,
          &quot;user_id&quot;: 119118855,
          &quot;location_id&quot;: 9999,
          &quot;duration&quot;: 0,
          &quot;watts&quot;: 0,
          &quot;timestamp&quot;: &quot;2019-06-13T00:00:00.000Z&quot;,
          &quot;equipment_id&quot;: 53,
          &quot;name&quot;: &quot;10 min Ride&quot;,
          &quot;equipment_name&quot;: &quot;Bike2&quot;
      },
      {
          &quot;id&quot;: 338,
          &quot;user_id&quot;: 119118855,
          &quot;location_id&quot;: 9999,
          &quot;duration&quot;: 0,
          &quot;watts&quot;: 0,
          &quot;timestamp&quot;: &quot;2019-07-12T00:00:00.000Z&quot;,
          &quot;equipment_id&quot;: 17,
          &quot;name&quot;: &quot;20 min Ride&quot;,
          &quot;equipment_name&quot;: &quot;Bike&quot;
      },
  ]
  </code></pre>
  <h1>Postman script I tried:</h1>
  <pre><code>pm.test(&quot;count of records with equipment id 53&quot;,function(){
  const jsonData = pm.response.json();
  var count = jsonData.length;
  //console.log(count);
  
  function noofrecords (){
      _each(count.equipment_id).to.include(53);
      count++;
      console.log(&quot;Count:&quot; + noofrecords);
  </code></pre>
  <p>May I know how to write script to get count of equipment_id =53
  Answer should be 2 here, but I am not getting it.</p>