Section 23. Licensing authorities may grant licenses for lodging houses which shall be for the period provided in section four, and shall charge for each license such fee as the council or selectmen may establish; otherwise, the same shall be granted without charge, but in no event shall any such fee be greater than fifty dollars.