Any number of persons, resident within a municipality, may form themselves into a company for the purpose of extinguishing fires, by having their names and objective recorded in the register’s office of the county.