Clarification of number licenses required.
Need help understanding the snippet below from the "What is group-based licensing in Azure Active Directory?" Microsoft page (https://docs.microsoft.com/en-us/azure/active-directory/fundamentals/active-directory-licensing-whatis-azure-portal). Are the licenses referred to in the second paragraph, the licenses you are assigning or the licenses of AADP1 or O365 E3 you need to be able to use group-based licensing? I assume it is the former but is it not clear since they are using the term license in two ways.
Licensing requirements
You must have one of the following licenses to use group-based licensing:
Paid or trial subscription for Azure AD Premium P1 and above
Paid or trial edition of Office 365 Enterprise E3 or Office 365 A3 or Office 365 GCC G3 and above
Required number of licenses
For any groups assigned a license, you must also have a license for each unique member. While you don't have to assign each member of the group a license, you must have at least enough licenses to include all of the members. For example, if you have 1,000 unique members who are part of licensed groups in your tenant, you must have at least 1,000 licenses to meet the licensing agreement.