Wrong, you check the envelope to see if it is proper, open the ballot, and then check the signature and witness, and finally feed a stack of checked ballots through the vote counting machine. Bad envelopes, signatures, and lack of witnesses make the ballot spoiled and thus shouldn't be counted. And if the machine doesn't take the batch due to a you need to check the ballot to see if it needs to be cured, clear the machine's memory of the stack, and rerun the stack.
Also the machine check the person voted for, not the party. Third party candidates get votes and the ballot covers several offices both federal, state, and local.
So basically you are complete ignorant of even the most basic parts of the process.