Max Martin

Max Martin accepts the award for Producer of the Year, Non-Classical onstage at the Premiere Ceremony during The 57th Annual Grammy Awards at the Nokia Theatre L.A. LIVE on Feb. 8, 2015 in Los Angeles, California. 

Michael Buckner/WireImage

With the ascent of Taylor Swift's "Bad Blood" to No. 1 on the Billboard Hot 100 chart, its co-writer/producer Max Martin tallies his 20th chart-topper as a songwriter.

Taylor Swift's 'Bad Blood' Blasts to No. 1 on the Hot 100

Martin (real name: Martin Sandberg) co-wrote "Bad Blood" with Swift, Johan Karl "Shellback" Schuster and the song's guest artist, Kendrick Lamar. Martin remains in third place among songwriters with the most No. 1s in the Hot 100's 56-year history. He trails only Paul McCartney, with 32 No. 1s, and John Lennon (26). (In addition, "Bad Blood" is Shellback's ninth No. 1 as a writer.)

Martin also produced "Bad Blood" (with Shellback), and thus also earns his 18th leader as a producer. (It's the eighth No. 1 produced by Shellback.) Among all producers, only another Martin -- George Martin -- has more No. 1s, with 23. Of those 23 chart-toppers, 19 were for The Beatles. In third place, with 16 No. 1s each, are Jimmy Jam, Dr. Luke and Terry Lewis.

Kendrick Lamar Scores First Hot 100 No. 1 Thanks to Taylor Swift

Below is a recap of Martin's 20 Hot 100 No. 1s as a writer. His first, Britney Spears' "…Baby One More Time," is his only No. 1 that he solely wrote and produced. He wrote all his other No. 1s in collaboration with others. (Of his leaders, only 'NSYNC's "It's Gonna Be Me" and Katy Perry's "I Kissed a Girl" were not also produced by Martin.)

Max Martin's Hot 100 No. 1s as a Songwriter
Britney Spears, "…Baby One More Time," 1999
'NSYNC, "It's Gonna Be Me," 2000
Katy Perry, "I Kissed a Girl," 2008
Pink, "So What," 2008
Kelly Clarkson, "My Life Would Suck Without You," 2009
Britney Spears, "3," 2009
Katy Perry featuring Snoop Dogg, "California Gurls," 2010
Katy Perry, "Teenage Dream," 2010
Pink, "Raise Your Glass,"2010
Britney Spears, "Hold It Against Me," 2011
Katy Perry featuring Kanye West, "E.T.," 2011
Katy Perry, "Last Friday Night (T.G.I.F.)," 2011
Katy Perry, "Part of Me," 2012
Maroon 5, "One More Night," 2012
Taylor Swift, "We Are Never Ever Getting Back Together," 2012
Katy Perry, "Roar," 2013
Katy Perry featuring Juicy J, "Dark Horse," 2014
Taylor Swift, "Shake It Off," 2014
Taylor Swift, "Blank Space," 2014
Taylor Swift featuring Kendrick Lamar, "Bad Blood," 2015