status: add incident_count() template hook