To find the number of tokens, i just do...

Code:
count = sizeof tokens
count--;
For some reason, the last token is always junk!!!! hence the reason why the count-- to ignore the last token!!!!