The 30-year-old singer sold some 116,000 units of “Rainbow,” according to data on Monday from Nielsen SoundScan, to give her the second-largest U.S. sales week of 2017 by a female singer after Katy Perry’s “Witness.”

“I am so grateful and so lucky and ... at a loss for words. thank you. thank you. Thank you. there were many days that my music was simply a coping tool, for my emotions,” Kesha said in a message on her Facebook page on Monday.

FILE PHOTO: Kesha poses on the red carpet a the Billboard Magazine's 11th annual Women in Music luncheon in New York, U.S., December 9, 2016. REUTERS/Shannon Stapleton/File Photo

“Rainbow” mixes Kesha’s signature pop sounds of seven years ago with raw, powerful songs in which she channels the frustration, hurt and anger she has felt during a lengthy court battle with her former producer, Dr. Luke, whom she accused of emotional and sexual abuse.

Dr. Luke denied the allegations and counter-sued for defamation. That case, and Kesha’s battle to be released from a multi-album contract with Sony Music, is still making its way through the U.S. legal system, even as Kesha decided to release “Rainbow” through the Sony Music group.

“Rainbow” knocked rapper Kendrick Lamar’s “Damn”, which was released in April, back to second place on the Billboard 200, with another 43,000 units sold for the week.