title: Get the repetition of number in the form of dimension in numpy
body: <p>I have a 10x20 numpy array</p>
  
  <pre><code>[[255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255],
   [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
   [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
   [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
   [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],
   [255,255,255,255,255,255,255,0,0,0,255,255,0,0,255,255,255,255,255,255],
   [255,255,255,255,255,255,255,0,0,0,255,255,0,0,255,255,255,255,255,255],
   [255,255,255,255,255,255,255,0,0,0,255,255,0,0,255,255,255,255,255,255],
   [255,255,255,255,255,255,255,0,0,0,255,255,0,0,255,255,255,255,255,255],
   [255,255,255,255,255,255,255,0,0,0,255,255,0,0,255,255,255,255,255,255]]
  </code></pre>
  
  <p>I want to get the repetition of number 0(island of 0's) in the form of a array of dimensions . Like in the example above if I pass the number <code>0</code> as parameter the function should go from top to down through the matrix and then go from left to right resulting in the dimensional array. The output for above example should be </p>
  
  <pre><code>#Zeroes repetition dimensions
  [[20,4],[3,5],[2,5]]
  </code></pre>
  
  <p>How can I get this output. Any numpy functions to do this? Thanks in advance.</p>