A storm moving through Southern California produced nearly 40,000 lightning strikes and threatened to bring more rain and thunderstorms Monday.