problem with /ip firewall mangle get number in scripting

https://c2n.me/4aMVj07
see. when i do put [/ip firewall mangle get number=1 packets] in terminal i get 6 and this is right nubmer
but in my script :set numnew [ /ip firewall mangle get number=1 packets ]; returns 8(!)
what am i doing wrong??

You are using numbers in scripts. That cannot be done, numbers are only valid in interactive sessions (after print command).
You must use [find …] in scripts.

understood. thank you.