In the aftermath of the mass shooting in Dallas that killed multiple police officers, there is one thing policymakers could do to prevent the number of deaths of officers on the line of duty: limit access to guns.

That was the suggestion of a study from 2015. The study, published in the American Journal of Public Health, looked at federal data for firearm ownership and homicides of police officers across the US over 15 years. It found that states with more gun ownership had more cops killed in homicides: Every 10 percent increase in firearm ownership correlated with 10 additional officers killed in homicides over the 15-year study period.

Researchers controlled for different variables, including violent crime rates, the percentage of people ages 15 to 29, and racial demographics.

The federal data the study relied on had some limitations: The gun ownership data was limited to certain years, and it may have underreported police deaths. But the analysis, researchers said, passed several sensitivity tests that were fully posted online.

The results aren't really surprising. Previous research found that places with more guns and more access to guns — barring other variables that can influence crime — tend to have more homicides.

For example, a 2016 review of 130 studies in 10 countries, published in Epidemiologic Reviews, found that new legal restrictions on owning and purchasing guns tended to be followed by a drop in gun violence — a strong indicator that restricting access to guns can save lives.

Previous research found that places with more guns and more access to guns tend to have more homicides

Guns are not the only factor that contribute to violence. (Other factors include, for example, poverty, urbanization, and alcohol consumption.) But when researchers control for other confounding variables, they have found time and time again that America's high levels of gun ownership are a major reason the US is so much worse in terms of gun violence than its developed peers.

"A series of specific comparisons of the death rates from property crime and assault in New York City and London show how enormous differences in death risk can be explained even while general patterns are similar," UC Berkeley's Franklin Zimring and Gordon Hawkins wrote in a breakthrough analysis in the 1990s. "A preference for crimes of personal force and the willingness and ability to use guns in robbery make similar levels of property crime 54 times as deadly in New York City as in London."

So the study on guns and police simply follows up on this established link between more guns and more gun deaths — clarifying that more guns mean more police officer deaths, too.

Perhaps some Americans think that guns should still remain easily accessible, because the right to bear arms is too important to limit or lose. But an increasing amount of research shows that this comes with a grim downside: more lives lost.

Watch: America's gun problem, explained in 18 charts