A flux-limited sample of Galactic carbon stars