title: Find the number of connected objects in a given 2-D binary matrix
body: <p>Find number of connected objects from a given 2d matrix<br>
   Sample Input &amp; Output1: </p>
  
  <pre><code>Enter number of rows: 
  5 
  Enter number of columns: 
  5 
  Enter the matrix: 
  0 0 0 0 0
  1 0 0 1 0
  1 0 0 0 1
  0 1 0 1 0
  0 0 0 0 0 
  Number of connected objects = 2
  </code></pre>