input-eventd: gen: add count information to the index