Added the option to pass a maximum number of rows to process.
Merge pull request #1 from patxi1980/master

Added the option to pass a maximum number of rows to process.