Set an upper limit on the number of items in the list