Katy Perry, Jagger Perform 'Beast of Burden' (VIDEO)

Katy Perry and Rolling Stones fans were in for a special treat when the musicians collaborated onstage in Las Vegas over the weekend.

The Rolling Stones just kicked off the 50 and Counting Tour on May 3.

However, their tour stop in Las Vegas saw an extra special performance when Perry joined them on the hit song "Beast of Burden."

Perry, 28, joined the famed rockers Mick Jagger, Keith Richards, Charlie Watts, and Ronnie Wood on the rendition.

"Yes, I just did gyrated on Mick Jagger. WHAT?! #Stones50," Perry posted to Twitter before noting her grammatical error.

"I noticed that," the "Part of Me" singer added. "I guess I was too excited. Sorry mom."

Furthermore, the "Firework" singer added a picture of herself with the band.

"Thanks for letting me be the 5th wheel last night! @Rollingstones," Perry wrote. 

Watch the video of Perry's performance with The Rolling Stones here.

Meanwhile, the 50 and Counting Tour commemorates The Rolling Stone's 50th anniversary and will see 17 dates in 10 cities. It was announced earlier this month and will see stops in Oakland, Las Vegas, Anaheim, Toronto, Chicago, Montreal, Boston, and Philadelphia.

Initially, the Stones had performed a batch of concerts in late 2012 in London, Newark, and Brooklyn.

"50 and Counting has been pretty amazing so far," said Jagger, according to the band's website. "We did a few shows in London and New York last year… and had such a good time that we thought… let's do some more."

"It's a good show," added the singer. "Lots of the classic stuff everyone wants to hear… with a few little gems tucked in here and there. The stage is shaped like lips and goes off into the venue so I get to run around in the crowd. It's great fun to be able to get that close to the audience."

The Stones are famous for dozens of hit songs such as "Not Fade Away," "Tell Me (You're Coming Back)," and "(I Can't Get No) Satisfaction," among countless others.

They are listed on Billboard magazine's "100 Greatest Artists of All Time" and have sold an estimated 200 million albums worldwide.

Formed in London in 1962, the Rolling Stones consist of Brian Jones on guitar and harmonica, Ian Stewart on piano, Mick Jagger on lead vocals and harmonica, Keith Richards on guitar and backing vocals, Bill Wyman on bass and Charlie Watts on drums.