There is a trick in Solaris I have used, if you ask for the size of more than one file it returns just the total size with no names - so include an empty file like /dev/null as the second file:
eg command fileyouwant /dev/null
I can't rememebr which size command this works for ls/wc/etc - unfortunately I don't have a solaris box to test it.