The said legislative delegation shall file with the governing body of the county, if the election was for a county or township hospital or tuberculosis camp, or with the town council if the election was for a city or town hospital or tuberculosis camp, a detailed statement of the votes cast for the hospital or tuberculosis camp and, if a majority of the qualified voters at such election shall be in favor of building and maintaining such hospital or tuberculosis camp, the amount of bonds to be issued, and in such case such governing body or town council shall issue bonds of the county, township, city or town in the aggregate principal amount not to exceed the amount required for the purpose of building such hospital as voted for by the freeholders.