To which you're referring "text<space><space>moretext" ? Just attepted it..

I first type:
/set %test text<space><space>text
then i typed
/echo > $count(%test, $chr(32))
output:
> 2