"Coffee" is a liquid, so you can't count how much of it you've had. The way that English speakers count coffee is to say how many cups they've had.
Hot tea is counted in the same way. Cold drinks are counted by how many "glasses" or "bottles" you've had. Beer is counted with "beers":
I'm totally not drunk! I only had, like, two beers!