Allow specifying a max number of entries to copy.