Print command fail

Hello,
I have only a short question it is that Im using this syntax in code:

:local clientcount [:tonum [/interface wireless registration-table print count-only]]

The fail is that the print command after it is executed also prints value to console even if I use as-value command.
Is there any possibility to fix it?
Its only a cosmetic problem but router must print to console so one more action for him.

:local clientcount [:len [/interface wireless registration-table find]]

First create an array containing pointers to all items in the reg table, then use len to return the size of that array (number of items).