Such minimum number of voting machines shall be based on the voting machine in use, taking into account machine functionality and capability, including the ability to tabulate multiple official ballots and the need for efficient and orderly elections and, in the case of a general or special election, the number of registered voters, excluding voters in inactive status, in the election district or,