Pelé participated in four FIFA World Cup tournaments.
His World Cup appearances came in 1958 in Sweden, 1962 in Chile, 1966 in England and 1970 in Mexico. He played 14 World Cup matches across those four tournaments and scored 12 goals. Although injuries limited his involvement in parts of some competitions, he was selected and played in each of these four final tournaments.
Pelé won the championship in 1958, 1962 and 1970, making him the only player to win three FIFA World Cup titles. The 1966 tournament was the exception: Brazil were eliminated in the group stage, and Pelé was repeatedly fouled during the competition.
The answer is four tournaments, not three victories. Another common confusion is between tournaments and matches: Pelé played in four editions but made 14 total appearances. He also scored in four different World Cups, a feat later matched by only a small group of players.