Introduce a new index on the metrics table to improve query performance by including the count column.