title: Extract unique rows from a matrix in numpy with the frequency of each row that was created
body: <p>A follow up question on:</p>
  
  <p><a href="https://stackoverflow.com/questions/6776821/how-can-i-use-the-uniquea-rows-from-matlab-at-python">How can I use the unique(a, &#39;rows&#39;) from MATLAB in Python?</a></p>
  
  <p>The answer there explains how to get the unique rows. Yet matlab also returns the frequency of each row that was created. Any elegant way to make it with python?</p>
  
  <p>Thanks!</p>