title: How to transform array of objects to new array of objects and count the keys
body: <p>The code is something like this:</p>
  <pre><code>let inputArray=[
  {Id: '1', Name: 'Ani'},
  {Id: '2', Name: 'George'},
  {Id: '4', Name: 'George'},
  {Id: '5', Name: 'Ani'}];
  </code></pre>
  <p>I need to make a new array with objects in the format :</p>
  <pre><code>let result=[
  { Name: 'Ani', count:2},
  { Name: 'George',count:2},
  { Name: 'Henry',count:1}];
  </code></pre>
  <p>Any idea please? :)</p>