added function to get current host count