Any inspector, clerk, watcher, or chair of an executive committee who compares the number on the poll list with the number of the ballot of any voter for the purpose of ascertaining how any voter voted, except in case of contest, shall be guilty, upon conviction, of a Class C misdemeanor.