title: possible number of rectangle in a matrix
body: <p>I am going through a algorithm of calculating the sum of a region of matrix. And I read a solution  to pre-compute the sum to get better result.I want to calculate the possible number of rectangle(sub Maxtix) in a 2d-matrix of size mXn.</p>
  
  <p>Can anybody explain solution using permutation and combination.</p>