The Datacenter edition allows for an unlimited number of Windows Server guests and an unlimited number of Hyper-V containers running Windows Server.
Windows 10 licenses are separate, and singletons, so you need to have licenses for each VM.
It is always recommended to consult a MS licensing specialist if you have any questions of licensing.
Hope above information can help you.
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.