Measurement of the production of a W boson in association with a charm quark in pp collisions at $ \sqrt{s} $ = 7 TeV with the ATLAS detector