Open SEPM
click on Admin
click on Domain
edit domain properties, here you will see the option to delete clients if not connected for X days,
You license will be counted for machines which are not in the network or not reported for more than X no of days.
in that case, just remove the license and import it again.. that would give you the correct count.