code: def ball_count(cls, ball_tally, strike_tally, pitch_res):
          
          b, s = ball_tally, strike_tally
          if pitch_res == "B":
              if ball_tally < 4:
                  b += 1
          elif pitch_res == "S" or pitch_res == "C" or pitch_res == "X":
              if strike_tally < 3:
                  s += 1
          elif pitch_res == "F":
              if strike_tally < 2:
                  s += 1
          return b, s
docs: Ball/Strike counter
          :param ball_tally: Ball telly
          :param strike_tally: Strike telly
          :param pitch_res: pitching result(Retrosheet format)
          :return: ball count, strike count