Yeah, speaking more about more modern warfare, and also more specifically about invasion forces...
The US lost around 2,400 total in Afghanistan over 20 years, and the combined coalition forces were around 3,400.
Russia lost around 15,000 in Afghanistan over 10 years.
The US lost about 4,400 in Iraq.
And the US lost about 58,000 in Vietnam.