                                    (mapcat (comp :id :offer :leases))
                                    (distinct)
                                    (count)))
+                (histograms/update! number-offers-matched
+                                    (->> matches
+                                         (mapcat (comp :id :offer :leases))
+                                         (distinct)
+                                         (count)))
                 (meters/mark! matched-tasks (count task-txns))
                 (meters/mark! matched-tasks-cpus (:cpus match-resource-requirements))
                 (meters/mark! matched-tasks-mem (:mem match-resource-requirements))

(histograms/defhistogram [cook-mesos scheduler offer-size-mem])
(histograms/defhistogram [cook-mesos scheduler offer-size-cpus])
(histograms/defhistogram [cook-mesos scheduler number-tasks-matched])
(meters/defmeter [cook-mesos scheduler scheduler-offer-matched])
(meters/defmeter [cook-mesos scheduler handle-resource-offer!-errors])
(meters/defmeter [cook-mesos scheduler matched-tasks])

                   (vec (apply concat upgrade-txns task-txns)))
                (log/info "Launching" (count task-txns) "tasks")
                (log/info "Upgrading" (count (:upgrade-backfill processed-matches)) "tasks from backfilled to proper")
                (log/info "Matched tasks" task-txns)
                ;; This launch-tasks MUST happen after the above transaction in
                ;; order to allow a transaction failure (due to failed preconditions)
                ;; to block the launch
