Trans-Dimensional Bayesian Inference for Gravitational Lens Substructures