script to get batters per inning