I used this and it worked, looks like the # is a special character:
numberinput.number_input(“\# of Items”, format=“%1f”, key=“input”)