the Total number of Wehrmacht personnel in begin of World war 2 was 18 million People (Administration, Support and rear service troops included)
at end of WW2 around 4.3 million were dead or missing in action, 3.4 million s´wounded or sick and around 8.8 million POWs
the number include Waffen-SS forces (foreigner nazis) and Volksstrum (older men and teens from Hitlerjugend)
source: the the military search service "Deutsche Dienststelle (WASt)"
According that source, were only 1.5 million german soldier left (Wehrmacht, SS, Volkssturm and Hitlerjugend)
were other estimation goes to numbers of under 800000 german soldier
I think that is the real number of Soldier.
because the Volkssturm and Hitlerjugend, were untrained old men and boys were Wehrmacht and SS gave them a gun in there hands...
Notes
Volksstrum (eng "storm of the people")
was a German national militia of the last months of World War II, who were only defensive force of their own districts.
mostly males between the ages of 16 to 60 years who were not already serving in Wehrmacht.
form by the Hitler Youth, invalids, the elderly, or men who had previously been considered unfit for military service.
they use not Wehrmacht hardware, but special for this developed cheap, but effective Volkssturm weapons.
The Volkssturm had no effect on the end of world war 2