There have been over 235,500 games played across 154 years in Major League Baseball. In those, there have only been 24 perfect games thrown by a pitcher.
A perfect game is when a pitcher completes the maximum nine innings with no batter from the opposing team reaching base - with 27 men up to bat and all 27 being out without getting on base.
In 2004, Randy Johnson became the 17th pitcher to achieve a perfect game - in a 2-0 win over the Atlanta Braves for the Arizona Diamondbacks.