title: List array duplicates with count
body: <p>I have an array which contains the following results</p>
  
  <pre><code>red 
  red
  red
  blue
  blue
  Green
  White
  Grey
  </code></pre>
  
  <p>and I want to get duplicate count of every value of array, for example:</p>
  
  <pre><code>red    Count=3
  blue   Count=2
  Green  Count=1
  White  Count=1
  Grey   Count=1
  </code></pre>