Measurements of W and Z boson production in pp collisions at  TeV with the ATLAS detector