Updated stim to dynamically support setting tooth count