In baseball, each player on the offensive team takes turns batting, and each player is allowed to bat once per inning, assuming they do not make an out or reach base via a walk, hit-by-pitch, or other means.
Over the course of a game, each player on the offensive team typically gets four or five at-bats, assuming the game goes the full nine innings. However, if the game goes into extra innings, players on the offensive team will have additional opportunities to bat.
Overall, the number of times a player can bat in a baseball game is determined by the number of innings played, the player’s position in the batting order, and their performance at the plate. While each player is only guaranteed one at-bat per inning, they may have additional opportunities to bat if they reach base safely or if the game goes into extra innings.