ST. PAUL (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.

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.

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.