Get how many licenses a user has in CPP

Some users may have more than one license associated to him, when my application call GetUserLicenses, I need to instantiate a UserLicense* with as many licenses as the user has, but I could not find a method in LexActivator library that gives me the number of licenses the user has so I can make the UserLicense* in the correct size. Is there a way to get the number of licenses from an user?