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