Remove the write-only variable diagnostic_count.