Written by Dolly Parton.
Wow. Didn’t know that...
Actually Dolly Parton sang it in the Best Little Whorehouse in Texas (1982).