Need help with a number helper

I have created a number helper called input_number.test that gets assigned a value from a pull down drop box in my dashboard. That part is working fine. I want to use this value as the repeat count value for repeating the actions in an automation. I tried the following but it doesn’t work.

   count: input_number.test

The number is probably a float, integer, or string and needs to be some other type of value but i cant figure out what needs done to make it work. Any help is appreciated!

   count: "{{ states('input_number.test') | int(0) }}"

Thanks!! That worked great.