add the token_count() scalar function

no seems to be slower.. changed it