Count number of API calls and stop before a certain target

We all know that many providers, like Google, have API call limits/quotas.

Right now, from what I can see, rclone will just start failing when the service provider throws back errors.

I was wondering if there is a way for rclone to keep track/count of the API calls it makes?

And, have it stop once the limit is reached?

For example, my Photos Library API limit is 10,000. So I'd like it to stop when it gets to 950.

Is that possible?

Nope. No way to do that.

Google's Photo API is horrific.

Hurmph. I bet I can figure this out through some work.

I'll do 1 transfer and see how much quota was used. Then 2, then 3, 4, 5, 10, 100, 1000, etc.

I bet eventually I'll see a pattern.

Thanks!