According to baseball-reference.com, 18,654 baseball players have played in the major leagues (Gary Sanchez of the Yankees being the newest)… or 18,655 if you count Raul Mondesi, Jr., who qualifies as an exception to several rules.
310 people are enshrined in the Hall of Fame, this number including 28 baseball executives, 35 from the old Negro leagues, 22 managers, and 10 umpires. That leaves roughly 215 major league ball players.
There are currently 74 pitchers in the Hall of Fame (if you count Babe Ruth).