Add option --limit to limit the number of retrievals (resolves #17)