The log sometimes records a status before it records a duration. Within a group, COUNT(*) counts its rows and COUNT(duration_seconds) counts its recorded times, including zero.
Return one row per status. Show status, the number of runs as run_count and the number with a recorded duration as timed_runs. Keep statuses with no recorded times.