Section 56. Whoever gives any information derived from a recount of votes, relative to a ballot cast by a challenged voter at an election, caucus or primary, except as required by law, shall be punished by a fine of not more than five hundred dollars or by imprisonment for not more than one year.