added output that indicates number of items that will be upserted