Tokenizer: getNTokens (sliding window)