pan/bi: Handle discard/branch in get_component_count