To find License consumption in XL-DEPLOY

We don’t have any in built-in mechanism to give you a number of the host using license but we have a small XLD CLI script that can give you the list of the host with other CI counts.
You can download CLI from the customer distribution site
DOC on XLD CLI: https://docs.xebialabs.com/v.9.5/deploy/how-to/install-the-xl-deploy-cli/
Script need to be executed as shown below:

./cli.sh -configuration deployit.conf -port 4517 -f ~/Downloads/download/count-cis.py -expose-proxies

My xl-deploy is running on port 4517
The output will be like

of applications : 33
of versions : 49
of deployment packages : 49
of deployed applications: 5 

of hosts : 13
of containers : 34
of deployeds : 10

Mine is 13 hosts(license consumption)

Content of script count-cis.py

from com.xebialabs.deployit.plugin.api.reflect import Type
print "# of applications           :", len(proxies.repository.query(Type.valueOf('udm.Application'), None, None, None, None, None, 0, -1))
print "# of versions               :", len(proxies.repository.query(Type.valueOf('udm.Version'), None, None, None, None, None, 0, -1))
print "# of deployment packages    :", len(proxies.repository.query(Type.valueOf('udm.DeploymentPackage'), None, None, None, None, None, 0, -1))
print "# of deployed applications  :", len(proxies.repository.query(Type.valueOf('udm.DeployedApplication'), None, None, None, None, None, 0, -1))
print "# of hosts                  :", len(proxies.repository.query(Type.valueOf('overthere.Host'), None, None, None, None, None, 0, -1))
print "# of containers             :", len(proxies.repository.query(Type.valueOf('udm.Container'), None, None, None, None, None, 0, -1))
print "# of deployeds              :", len(proxies.repository.query(Type.valueOf('udm.Deployed'), None, None, None, None, None, 0, -1))

Hope this help