add the token_count() scalar function

is this faster than instanceof Array ?