Allow for an optional maximum number of entries to display.