title: How to get count of key having similar value in javascript object?
body: <p>I need to achieve something like this:</p>
  
  <pre><code>var data = [
      {
          tag:'A',
          others:'Abc'
      },
      {
          tag:'B',
          others:'Bbc'
      },
      {
          tag:'A',
          others:'Acb'
      }
  ] 
  </code></pre>
  
  <p>I am trying to group tag property having similar value. In given example, i need to group all tag with similar value and put it on another array.Is there way to get something like,</p>
  
  <pre><code>var newArray = [{tag:A,count:2}, {tag:B,count:1}]
  </code></pre>