How do I find the current Mission Control space number from the command line?

I found this post on the main SO site.. Seems simple enough (er not really)..

Hope this helps.