Reproduction with following:

Create a file with some whitespaces in its name. use $findfile to find it, for example:
$findfile(,,,echo -a $count($1-,$chr(32)))

This echoes number of spaces in found filename(s).

Running mIRC 6.35 on Vista 32bit.