title: PHP: Count number of information
body: <p>I do a import of a CSV tile to a array.
  The CSV file is like the following:</p>
  
  <pre><code>Company1, Workstation, PC1
  Company1, Workstation, PC2
  Company1, Server, Server1
  Company2, Workstation, PC1
  Company2, Server, Server1
  </code></pre>
  
  <p>what i want to do, is count how many Workstations Company1 have, How many Servers Company1 have, and so on for Company2.</p>
  
  <p>I like the result to be someting like:
  Company1(varible with the name):
  Computers: xxx
  Servers: xx</p>
  
  <p>I have had a look at array_count_values, but cant seem to get it to work, so i would be grateful if any could help.</p>