a cup of coffee
"Coffee" is usually an uncountable noun, so you count amounts of coffee using the cup:
I drink 2 or 3 cups of coffee in the morning.
You may sometimes hear people ask for "a coffee", but this is usually used when ordering coffee at a restaurant or cafe. In other situations, you should say "a cup of coffee".
Follow PhraseMix