In general, the more parts there are in a musical composition the harder it is to compose because they all have to fit together to sound nice. The 16th century composer Thomas Tallis wrote a motet called "Spem in alium" which is in 40 parts. A choir of at least 40 people is needed to sing it, and even then each person will be singing something different to all the others.