Updated leaf condition in regression tree to count only unique target values.