Editor's Note: This story was originally published in October and has been republished with updates in the wake of the shooting Sunday in Sutherland Springs, Texas.

Barely a month after the massacre in Las Vegas, another horrific attack has underscored the persistence of gun violence in the United States. At least 26 people are dead after the shooting this Sunday at the First Baptist Church in Sutherland Springs, Texas.

If the mounting death toll has you thinking that attacks like this seem to be more frequent in the United States than in other rich nations, you're right. Statistics on the rates of gun violence unrelated to conflict underscore just how outsize U.S. rates of gun deaths are compared with those in much of the rest of the world.

Take countries with the top indicators of socioeconomic success — income per person and average education level, for instance. The United States ranks ninth in the world among them, bested only by the likes of Luxembourg, Denmark, Norway, the Netherlands, Iceland, Andorra, Canada and Finland.

Those countries all also enjoy low rates of gun violence, but the U.S. has the 31st highest rate in the world: 3.85 deaths due to gun violence per 100,000 people in 2016. That was eight times higher than the rate in Canada, which had 0.48 deaths per 100,000 people — and 27 times higher than the one in Denmark, which had 0.14 deaths per 100,000.

The numbers come from a massive database maintained by the University of Washington's Institute for Health Metrics and Evaluation, which tracks lives lost in every country, in every year, by every possible cause of death. The figures for 2016 were released this fall. As in previous years, the data paint a fairly rosy picture for much of the world, with deaths due to gun violence rare even in many countries that are extremely poor — such as Bangladesh and Laos, which saw 0.16 deaths and 0.13 deaths respectively per 100,000 people.

Prosperous Asian countries such as Singapore and Japan boast the absolute lowest rates, though the United Kingdom and Germany are in almost as good shape.

"It is a little surprising that a country like ours should have this level of gun violence," says Ali Mokdad, a professor of global health and epidemiology at the IHME. "If you compare us to other well-off countries, we really stand out."

To be sure, there are quite a few countries where gun violence is a substantially larger problem than in the United States — particularly in Central America and the Caribbean. Mokdad says a major driver is the large presence of gangs and drug trafficking. "The gangs and drug traffickers fight amongst themselves to get more territory, and they fight the police," says Mokdad. And citizens who are not involved are often caught in the crossfire.

Mokdad said drug trafficking may also be a driving factor in two Asian countries that have unusually large rates of violent gun deaths for their region: the Philippines and Thailand.

With the casualties due to armed conflicts factored out, even in conflict-ridden regions such as the Middle East, the U.S. rate is worse than in all but one country: Iraq.

The U.S. gun violence death rate is also higher than nearly all countries in sub-Saharan Africa, including many that are among the world's poorest.

Copyright 2017 NPR. To see more, visit http://www.npr.org/.