Chinese dramas often have around 40 episodes because most dramas only have one season. Rather than being split into multiple seasons the dramas are just released as one so they have a lot of episodes.