title: How to count same value on recyclerview?
body: <p>Is there any method for counting the occurrence of each item on recyclerview ?</p>
  
  <p>Lets say I have recyclerview items:</p>
  
  <pre><code>String[] array = {"item1","item1","item2","item2", "item3", "item4"};
  </code></pre>
  
  <p>expected output :-</p>
  
  <pre><code>item1  2
  item2  2
  item3  1
  item4  1
  </code></pre>
  
  <p>I already create recycleview adapter, but i don't know how to count the same item.
  please help</p>