When an application presented under authority of section 1:7-4 of this Title is dismissed the court shall allow and tax the costs and necessary expenses of the Attorney-General, including a fee to the Attorney-General of not to exceed five hundred dollars ($500.00) in any one case, and shall order the payment thereof by such citizens, and payment thereof may be enforced by execution.
N.J.S. § 1:7-7