Ballot counting logic

The software logic that defines the combinations of contest selections that are valid and invalid on a given ballot and, determines how the contest selections are totaled in a given election.

Source: Election Terminology Glossary - Draft, National Institute of Standards and Technology (NIST), https://pages.nist.gov/ElectionGlossary/; Glossary of terms database, U.S. Election Assistance Commission, https://www.eac.gov/glossary/