[voyager] Add an option to limit the number of returned events.