In this video, I have used a powershell command (Get-ADUser -Filter "Name -like '*'")
.count to know the no of users that exists in active directory similarly we can use (Get-ADcomputer -Filter "Name -like '*'")
.count to know the number of computers from active directory