renamed --debug to --dry-run, makes more sense
added --max-count option