title: Compare two numpy arrays row-wise ValueError
body: <p>I want to compare two <code>NumPy</code> arrays row-wise and return the number of same rows.</p>
  
  <p>If i use the code below:</p>
  
  <pre><code>a=np.array([[1,2],[3,4]])
  b=np.array([[1,4],[2,3]])
  comp= np.logical_and(np.equal(a,b))
  correct=numpy.sum(comp)
  </code></pre>
  
  <p>I get the following error:</p>
  
  <pre><code>ValueError: invalid number of arguments
  </code></pre>
  
  <p>However, this works:</p>
  
  <pre><code>np.logical_and([True, False], [False, False])
  </code></pre>
  
  <p>This is probably very silly but I am new to <code>NumPy</code>. Please help.</p>