Implement addVote() so that finishTally() has an aggregate result to work with. Copy pasta-ing from T283728#7139581:
This step would deal with writing the STVTallier constructor, unpackRecord(), and addVote(). addVote() should return something like:
[ 1 => [ A => 2 B => 0 C => 1 ], 2 => [ A => 1 B => 1 C => 1 ], 3 => [ A => 0, B => 2, C => 1 ] ]