The effect of the domain's configuration space on the number of nodal solutions of singularly perturbed elliptic equations