added count_incidents_by_datediff