Determination of the number of wounded nucleons in Pb+Pb collisions at 158 A GeV/c