title: Find multiple duplicates , count number of duplicates and indices of unique as well as first duplicate text in python
body: <p>please help me.
  my file looks like this:</p>
  
  <pre><code>This is a cat
  we are working at BusinessBrio
  Gitu is my beloved cat
  Jery is also a cat
  Boni is a nice dog
  Gitu is my beloved cat
  we are working at BusinessBrio
  This is a cat
  we are working at BusinessBrio
  Gitu is my beloved cat
  Jery is also a cat
  Boni is a nice dog
  Gitu is my beloved cat
  we are working at BusinessBrio
  </code></pre>
  
  <p>I need output like this:</p>
  
  <pre><code>[[1,'we are working at BusinessBrio',4],[2,'Gitu is my beloved cat',4],[0,'This is a cat',2],[3,'Jery is also a cat',2],[4,'Boni is a nice dog',2]]
  </code></pre>
  
  <p>more over the output must be sorted in descending order based on duplicate count</p>