When tokenizing, use enumerate() instead of manually incrementing a counter.