It matters who counts the votes, but also who is allowed to vote, and how many absentee votes are allowed to be manufactured.
Those that count the votes can manage all the parameters you mention to achieve the desired outcome.