'Get how many hosts are in the workspace. If it can\'t, it will
return zero.'

def getHostsCount(self):

    try:
        hosts = models.Hosts.class_signature
        count = self.mappers_manager.getMapper(hosts).getCount()
    except:
        getLogger(self).debug("Couldn't    get    host    count:    assuming    it    is    zero.")
        count = 0
    return count
