title: How to find the number of products against a manufacturer in multi dimension array
body: <p>I'm creating a web application where I need to show total count of products against a single manufacturer but I have to get that data from a multi dimensional array where multiple arrays contains same manufacturer id but represent different products</p>
  
  <pre><code>array:1 [▼
    "Concrete" =&gt; array:199 [▼
      0 =&gt; array:26 [▼
        "fav_yes" =&gt; ""
        "id" =&gt; 1440
        "name" =&gt; "Citrox 600"
        "mfg_id" =&gt; 88
      ]
      1 =&gt; array:26 [▼
        "fav_yes" =&gt; ""
        "id" =&gt; 191
        "name" =&gt; "Crackbond CSR"
        "mfg_id" =&gt; 88
  
      ]
      2 =&gt; array:26 [▼
        "fav_yes" =&gt; ""
        "id" =&gt; 1305
        "name" =&gt; "980 Grout &amp; Tile Cleaner"
        "mfg_id" =&gt; 260
        "mfg_name" =&gt; "Diedrich Technologies, Inc."
  
      ]
  "Mension" =&gt; array:199 [▼
  0 =&gt; array:26 [▼
        "fav_yes" =&gt; ""
        "id" =&gt; 1361
        "name" =&gt; "C-Tar Melt"
        "mfg_id" =&gt; 260
      ]
      1 =&gt; array:26 [▼
        "fav_yes" =&gt; ""
        "id" =&gt; 1306
        "name" =&gt; "960 HD Concrete Cleaner"
        "mfg_id" =&gt; 260
  ]
  
  </code></pre>
  
  <p>I need to show total number of <code>name</code> as against <code>mfg_id</code> after iterating through whole the array.
  Expected output is
  mfg_id = 2 because the occurrence of name against mfg_id 88 is 2 times
  and for mfg_id 260 the result is 3 because the number of occurrences of a name against this id is 3.</p>