Thank you!!
Do you even need a script to change it? Select all reinforcement you want to change and select to Fixed number: