My caffeine consumption completely depends on how much sleep I'm getting; I have no consistent beverage routine otherwise. On days where I've had enough sleep, I rarely have more than a couple cups of tea. Otherwise I may drink up to six.
Do you find that as you increase caffeine consumption from a previous night's sleeplessness that it causes poor sleep the following night? That's been my experience.