num_tokens function

Get number of tokens in a string using OpenAI's tiktoken library