Add support for min number of rows
Merge pull request #3 from tm2/master

Support for min number of rows