It's not appropriate to compare the United States to Afghanistan or Sudan. Better to pick countries with similar GDP per capita.
Switzerland is a good point of comparison; they have about half as many guns per capita as the US which includes military-grade weapons, but no mass shootings.