How do I calculate image tokens in GPT4 Vision?

They should put this in official documentation

Thanks!