§ 99-c.  Agreements  for  joint  building  inspectors  by  municipal  corporations.  It shall be lawful for two or more municipal corporations  to  engage  jointly  one  building  inspector  and  make  an agreement  specifying how such inspector shall be paid for his services.