How did you create the Tally (count) of scores; Wins/Losses/Ties?

Continuing the discussion from Youth Baseball Website: