PHP | Get Collection Size : <p>I have the following php array:</p>

<pre><code>{
  "Like New": [
    {
      "id": 1,
      "title": "Computer",
    }
  ],
  "New": [
    {
      "id": 2,
      "title": "Refrigerator",
    },
    {
      "id": 3,
      "title": "Car",
    }
  ]
}
</code></pre>

<p>I need to print following table in the HTML page. How can I do so:</p>

<pre><code>Condition  | Count
-----------|--------
Like New   | 1
New        | 2 
</code></pre>
