Variables dont work

Hey my argument isnt working $execute if score #sec holder matches 0 run scoreboard players set #sec holder $(length) I want it to be so if i do mcf funtion <namespace>:countdown {length:10} it runs the funtion with length being = 10
Continue to help post