Measurement of W and Z production in proton-proton collisions at ps = 7 TeV with the ATLAS detector