All expenses of elections for the formation of a port district and annexations thereto, and any other port district elections, shall be paid by the county or counties holding such election, and such expenditure is hereby declared to be for a county purpose.