<P> Transformers is a series of American science fiction action films based on the toys created by Hasbro and Tomy . Michael Bay has directed the first five films - Transformers (2007), Revenge of the Fallen (2009), Dark of the Moon (2011), Age of Extinction (2014) and The Last Knight (2017). A Bumblebee spin - off, directed by Travis Knight, is scheduled for 2018, and a sixth film is to be released in 2019 . The series has been distributed by Paramount Pictures and DreamWorks . </P> <P> The film series has received mixed to negative reception, including criticism on the plots, juvenile humor, overuse of product placements and the lengths of the films . However, many have praised the visual effects, action sequences and music . It is the 10th highest - grossing film series, with a total of $4.3 billion; two films in the series have individually grossed over $1 billion . </P> <Ul> <Li> Transformers--The first film in the series, released on July 3, 2007 . It grossed $709 million worldwide . It was directed by Michael Bay from a screenplay by Alex Kurtzman and Roberto Orci and a story by Kurtzman, Orci and John Rogers, and starred Shia LaBeouf and Megan Fox . </Li> <Li> Transformers: Revenge of the Fallen--The second film in the series, released on June 24, 2009 . It grossed $836.3 million worldwide . It was directed by Michael Bay from a screenplay written by Ehren Kruger, Roberto Orci and Alex Kurtzman, and starred Shia LaBeouf and Megan Fox . </Li> <Li> Transformers: Dark of the Moon--The third film in the series, released on June 29, 2011, in 3D and IMAX 3D . It grossed $1.124 billion worldwide . It was directed by Michael Bay from a screenplay written by Ehren Kruger and starred Shia LaBeouf and Rosie Huntington - Whiteley . </Li> <Li> Transformers: Age of Extinction--The fourth film in the series, released on June 27, 2014, in 2D and 3D . It grossed $1.104 billion worldwide . It was directed by Michael Bay from a screenplay written by Ehren Kruger, and starred Mark Wahlberg and Stanley Tucci . </Li> <Li> Transformers: The Last Knight--The fifth film in the series, released on June 21, 2017, in 2D and 3D . It grossed $605.4 million worldwide . It was directed by Michael Bay from a screenplay written by Art Marcum, Matt Holloway and Ken Nolan, and starred Mark Wahlberg and Anthony Hopkins . This also marks Bay's final entry as director, as the studio will search for a new director to take over future sequels . </Li> </Ul> <Li> Transformers--The first film in the series, released on July 3, 2007 . It grossed $709 million worldwide . It was directed by Michael Bay from a screenplay by Alex Kurtzman and Roberto Orci and a story by Kurtzman, Orci and John Rogers, and starred Shia LaBeouf and Megan Fox . </Li>

How many transformers movies did mark wahlberg play in
find me the text answering this question