this has been brought up before, a search would probably show several answers
these are rough numbers from the top of my head:
WW1 about 1.5 million
WW2 about 1 million
commercial production around 200 thousand
Simson <12,000
Krieghoff <14,000
Swiss not sure, I think it says in Simson Lugers around 350 thousand