Avoiding counting the tokens again and again in the PSR0Locator