add support for showing a max number of results
Merge pull request #1 from herval/master

Nice touch. Thanks.