ALM-213 make sure event_count is integer