Adding support for prompting for dialog based on event count