title: Counting number of occurrences of an array in array of numpy 2D arrays
body: <p>I have a numpy 2D array of arrays:</p>
  <p><code>samples = np.array([[1,2,3], [2,3,4], [4,5,6], [1,2,3], [2,3,4], [2,3,4]])</code></p>
  <p>I need to count how many times an array is inside of the array occurs above like:</p>
  <p><code>counts = [[1,2,3]:2, [2,3,4]:3, [4,5,6]:1]</code></p>
  <p>I'm not sure how this can get counted or listed out the way I have above to know which array and counts are connected to each other, any help is appreciated. Thank you!</p>