title: Count Array element with specific string value
body: <p>I have this output:</p>
  
  <pre><code>{
  "results": [
      {
          "url": "https:1783.json",
          "id": 1783,        
          "created_at": "2019-08-29T13:52:47Z",
          "status": "open",
          "recipient": null,
      },
      {
          "url": "https:1781.json",
          "id": 1781,
          "created_at": "2019-08-29T10:21:57Z",
          "status": "open",
          "recipient": null,            
      },
      etc...
  </code></pre>
  
  <p>All I want to do is count the number of elements with the <strong>status</strong> of <strong>open</strong> </p>
  
  <blockquote>
    <p>"status": "open",</p>
  </blockquote>
  
  <p>This is whatI have so far:</p>
  
  <pre><code>$result = json_decode($result, true);
  echo count(array_keys($result, "open"));
  </code></pre>
  
  <p>But it outputs <strong>0</strong></p>
  
  <p>Thanks</p>