Limit queue by number of items.