Section 19. A city or town clerk, precinct clerk, election commissioner, mayor, alderman, selectman or other officer, who wilfully signs or issues a certificate not in accordance with the result of an election as appearing by the records and copies of records of votes cast, or by a recount of votes, shall be punished by imprisonment for not more than one year.