Section 7. The Supreme Judicial Court or Superior Court may, upon the petition of not less than twenty-four taxable inhabitants of the Commonwealth, not more than six of whom shall be from any one county, enforce the provisions of this chapter. If successful, said taxable inhabitants shall be entitled to recover reasonable attorneys' fees and other costs from the Commonwealth incurred in maintaining such suit.