input_generator: fix to check touch_count only if set_touch_count() is requested