When we speak, we can make many mistakes intentionally.
It is still correct to say "Two coffees, please" and it is faster. But "Two cups of coffee, please" is more correct from the formal grammar point of view and it's more universal to learn this pattern rather than the spoken one.