(a) A court may order an adoptive parent to pay, wholly or partly, reasonable fees for a former parent’s:

(1) independent counsel; or

(2) adoption counseling or guidance for a reasonable time.

(b) Except as provided in subsection (a) of this section, a court may assign among the parties to a case under this subtitle counsel fees, counseling or guidance fees, and costs of testing under § 5-3B-05 of this subtitle, as the court considers appropriate.