Since both drinks contain caffeine, it's best to consider them extras rather than a part of your daily water intake.
It’s also important to avoid coffee or caffeinated tea before bedtime —consuming it late at night will keep you awake or make it so you don’t get a good night’s rest.