title: How to Find Duplicate Values in Arrays?
body: <p>I am working on SQLite and I have written a query which returns me two arrays ItemsArray and CustomersIDArray as:</p>
  
  <pre><code>ItemsArray
  Element at Index 0 = Off White,
  Element at Index 1 = Fan,
  Element at Index 2 = Off White,
  Element at Index 3 = Delux,
  Element at Index 4 = Fan
  
  CustomerIDArray 
  Element at Index 0 = 1,
  Element at Index 1 = 2,
  Element at Index 2 = 2,
  Element at Index 3 = 3,
  Element at Index 4 = 4
  </code></pre>
  
  <p>I want result like that Off White = 2 (count) , Fan = 2 (count) and Delux = 1; 
  and the Resultant Array,</p>
  
  <pre><code>Result Array 
  Element at Index 0 = Off White,
  Element at Index 1 = Fan,
  Element at Index 2 = Delux
  </code></pre>
  
  <p>Actually I want the count of repetition in first array but the value must not same for CustomerArray.
  Please help me through logic or code.</p>