title: Column-wise maximum of two arrays and count the number of times one array has the maximum
body: <p>I have two np arrays:</p>
  <pre><code>a1 = np.array([1, -1])
  a2 = np.array([3.7416574e-04, -7.7873659e-01])
  </code></pre>
  <p>I want to count the number of times a1 holds the max value column wise.
  I calculated max value column wise with:</p>
  <pre><code>np.maximum(a1, a2)
  </code></pre>
  <p>I am not sure how to add a counter for that.</p>
  <p>Expected output based on the dummy arrays above:</p>
  <pre><code>a1 holds the max value 1 time
  </code></pre>