The stock market is a voting machine in the short term, but a weighing machine in the long term.