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