title: Underscore with count for duplicate values in angular json array
body: <p>Can anyone please tell me how to put count in duplicate values in angular JSON array:</p>
  
  <p>My actual array is given below:</p>
  
  <pre><code>$scope.datas.resultsOrder =['Data1','Data2','Data3','Data3','Data4','Data4'];
  </code></pre>
  
  <p>in the above array <code>Data3</code> and <code>Data4</code> is repeating twice, so i need it to come as <code>Data3_1, Data3_2, Data4_1, Data4_2</code> order within that array like as shown below:</p>
  
  <pre><code>$scope.datas.resultsOrder =['Data1','Data2','Data3_1',      
  'Data3_2','Data4_1','Data4_2'];
  </code></pre>
  
  <p>Also the values within that array are <strong>dynamic values</strong> and <strong>not static</strong></p>
  
  <p>Can anyone please tell me some solution for this?</p>