Even a choppy September hasn’t changed a key measure of 2021’s bullish tone: only twice in the last 20 years have more S&P 500 stocks headed into the fourth quarter with gains for the year.