Ballots are slowly being counted for California’s closely watched gubernatorial contest and Los Angeles’ mayoral race.