The sad part is, other than the security features, a piece of software to handle an election shouldn't be much more complicated than "If vote = republican then republican + 1 else if vote = democrat then democrat + 1".  Hell, there's no reason to even allow the vote counter to use floating point numbers.