Section 22. Election officers shall receive such compensation as the city council or the selectmen respectively may determine; but no deputy officer shall receive compensation except for attendance at the opening of the polls or for services in place of an absent officer.