add command line argument to specify the number of tasks to display from each list