update_count is just the count of the records for a tx. To calculate onchain fees for an account we must sum all credits vs debits. We don't need to GROUP BY update_count nor ORDER BY update_count since it is just a running index of updates to this tx.