Quantifying the Rise and Fall of Complexity in Closed Systems: The Coffee Automaton