Once a Day
"Once a Day" is a song written by Bill Anderson and recorded as the debut single by American country artist Connie Smith. It was produced by Bob Ferguson for her self-titled debut album. The song was released in August 1964, topping the "Billboard" country music chart for eight weeks between late 1964 and early 1965. It was the first debut single by a female artist to reach number one on the "Billboard" Hot Country Songs. This song peaked at number one for the week of November 28, 1964, and it stayed at number one for eight consecutive weeks, a record for a female solo artist for nearly 50 years, until it was surpassed by Taylor Swift's "We Are Never Ever Getting Back Together" in December 2012.
Once a Day
"Once a Day" was written by American country artist, Bill Anderson, especially for Connie Smith. Originally recorded by Smith as a demo, the song was officially recorded at her first session with RCA Victor Records on July 16, 1964 at Studio B in Nashville, Tennessee. Produced by Bob Ferguson, the session was accompanied by Nashville's "A-Team" of musicians, which included members of Anderson's touring band, The Po' Boys. The song itself describes a woman who has not gotten over her previous lover. Although the woman explains that she has limited her grieving to "once a day," it is later found out that she is grieving, "once a day, every day, all day long." The song's chorus is repeated twice throughout the song and goes as follows:
We Are Never Ever Getting Back Together
"We Are Never Ever Getting Back Together" is a song recorded by American singer-songwriter Taylor Swift for her fourth studio album, "Red" (2012). Swift co-wrote the song with its producers, Max Martin and Shellback. The song was released as the lead single from "Red" on August 13, 2012, by Big Machine Records. Its lyrics depict Swift's frustrations at an ex-lover who wants to re-kindle their relationship. "Rolling Stone" magazine named the song the second best song of 2012 while it took the fourth spot in "Time"' s end-of-year poll. The song received a Grammy Award nomination for Record of the Year. The song received a People’s Choice Award nomination for Favorite Song.
We Are Never Ever Getting Back Together
The song was an instant commercial success, becoming Swift's first number one on the "Billboard" Hot 100 chart in the United States, as well as the first song to hold the top spot for more than one week after a huge leap from a lower position since Kelly Clarkson's two-week run at number one with "My Life Would Suck Without You", which rocketed from number 97 to the top spot in 2009. Additionally, the song also topped the charts in Canada and New Zealand, while reaching the top five in Australia, Japan, South Korea, Ireland, Israel and the United Kingdom. It also topped the US Hot Country Songs for ten weeks, Swift's longest reign to date. A music video for the song was released in August 2012. To date, it has garnered over 615 million views on YouTube. A CD single was released in September 2012 by Swift's official store, Amazon.com and US Walmart stores. The single has been certified Quintuple platinum by the Recording Industry Association of America (RIAA), while also being certified platinum or more in Australia, the United Kingdom, Sweden, New Zealand, Japan and Denmark. The song is one of the best-selling singles worldwide, with worldwide sales reaching 7 million copies to date (according to the IFPI).

Question: Who wrote the song that was recorded as the debut single by American country artist Connie Smith, that was only surpassed as most weeks spent at number one by a female country artist by a song recorded  by American singer-songwriter Taylor Swift for her fourth studio album, "Red"? 
Answer: Bill Anderson