Updated command tokenizer to count pipes