Finding indices and number pixels for rectangle shapes

This module will find the indices of rectangle or square shape and count the
  number of pixels in that shape.

We should standardize on using 'row, col' naming instead of 'x, y'  when dealing