Update counts to spark