According to a British Coffee Association spokesperson (with a vested interest), its 4.5 cups a day:
“a wealth of scientific evidence suggests that moderate coffee consumption of four to five cups per day is perfectly safe for the general population and does have a beneficial effect on alertness and performance even in regular coffee drinkers”