Adds total counts to be inserted to db.