Complex sentence: The Allied army lost about 5,000 men, with 3,675 British, 921 Portuguese and 562 Spanish casualties.
Split into simpler sentences: The Allied army lost about 5,000 men. By nationality, there were 3,675 British, 921 Portuguese and 562 Spanish casualties.