title: Given a matrix, find number of rows and columns
body: <p>I want to find the number of rows and columns a matrix has without having knowledge of any other thing.</p>
  
  <p>Example:</p>
  
  <pre><code>int * findElements(int matInput[][]) {
        /*Count blah*/
        /*Now to run a loop till the number of rows*/
        /*I need to know the size of the matrix to run the loop above*/
  }
  </code></pre>
  
  <p>I cannot run a loop to find the size as I don't know when to terminate and also don't know if the matrix was initialized while creation.
  Is there any other method? </p>