• Count the number of tokens in a string.

    Parameters

    • s: string

      The string to count tokens in

    Returns number

    The number of tokens in the string