def get_num_hosts(multiple_labels=(), exclude_only_if_needed_labels=False, exclude_atomic_group_hosts=False, valid_only=True, **filter_data):
 hosts = rpc_utils.get_host_query(multiple_labels, exclude_only_if_needed_labels, exclude_atomic_group_hosts, valid_only, filter_data)
 return hosts.count()

def get_num_hosts ( multiple_labels = ( ) , exclude_only_if_needed_labels = False , exclude_atomic_group_hosts = False , valid_only = True , ** filter_data ) : hosts = rpc_utils . get_host_query ( multiple_labels , exclude_only_if_needed_labels , exclude_atomic_group_hosts , valid_only , filter_data ) return hosts . count ( )
get the number of hosts .