I don't know what language this is; it's not precisely Scheme
Add loss_list_len