The mayor and each councilman shall receive as compensation for their services the sum established by the municipal governing body at least six months prior to the date of the election.