title: Count frequency of each row in an array using Matlab
body: <p>I have this huge array. I extracted the unique rows in a separate array. Now I would like to create a vector in which to store the occurrences of each unique row. How could I do that? Tried using histc. I found about <code>tabulate</code>, but only works on vectors. </p>
  
  <pre><code>x=[62   29  64
      63  32  61
      63  32  61
      63  32  61
      63  31  62
      62  29  64
      62  29  64
      65  29  60
      62  29  64
      63  32  61
      63  32  61
      63  29  62
      63  32  61
      62  29  64
      ];
  
  uA=unique(x)
  [row, count] = histc(x,unique(x,'rows'))
  </code></pre>
  
  <p>I get the following error: <code>Edge vector must be monotonically non-decreasing.</code> Also encountered this error in a couple of other attempts. </p>