The judge found that the county “exercised its discretion” to not count 37 ballots that were surrounded by security concerns.