Maximum number of rows in CSV/XLS export?

When exporting a table from Metabase as CSV or Excel the maximum number of rows showing seems to be 18421, which seems a fairly random number.
What is the maximum at the moment? Can this be modified?
Thanks