Each row in deployments represents one run. COUNT(*) turns a set of rows into a single number. The example counts the services in the registry.
SELECT COUNT(*) AS service_count
FROM services;Count all rows in deployments, including the run with no assigned service. Name the result run_count.