Multiplicity in generalization

Concerning the diagram attached, how can I specify class D can have 3 instances of B but only 2 of C?
Thanks in advance.

Hi Luke Saluti,

Thanks for your post. I’m sorry that I cannot see any attachment in your post, could you please attach it again?

Best regards,
Lilian Wong