Added limit to the options

Allows you to limit the number of rows returned, defaults to 0 (which is
unlimited)