ST. PAUL, Minn. (AP) — Data shows opioid manufacturers distributed about 842 million pills to Minnesota pharmacies from 2006 to 2012, amounting to 156 pills for each resident.

Minnesota Public Radio News, analyzing data obtained by the Washington Post after a legal battle, reports that most of the pills were circulated in urban Hennepin and Ramsey counties, but that rural counties topped the list for most pills dispensed per resident.

READ MORE: Alliance Seeks To Preserve Duluth's Most Endangered Buildings

The number of opioid-related deaths in the state rose from 153 in 2006 to 239 in 2012, a more than 35% spike. Almost 1,400 Minnesotans died in that six-year period.

READ MORE: Sen. Omar Fateh Says Charter Amendment Vote Gives Mpls. Chance For 'New Approach To Public Safety'

Opioid overdose deaths in Minnesota reached a record 427 in 2017. The state required prescribers to enroll in a prescription monitoring program that year.

Minnesota’s Senate passed legislation this year to combat the opioid crisis.

MORE NEWS: 'It Was Pretty Chaotic': 3 Dead In Montana Amtrak Train Derailment

(© Copyright 2019 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)