def object_count_children(self, obj_type, obj_uuid, child_type):
    if (child_type is None):
        return (False, '')
    obj_class = self._get_resource_class(obj_type)
    if (child_type not in obj_class.children_fields):
        return (False, ('%s is not a child type of %s' % (child_type, obj_type)))
    col_start = (('children:' + child_type[:(- 1)]) + ':')
    col_finish = (('children:' + child_type[:(- 1)]) + ';')
    num_children = self._cassandra_driver.get_count(datastore_api.OBJ_UUID_CF_NAME, obj_uuid, start=col_start, finish=col_finish)
    return (True, num_children)
def object_count_children(self, obj_type, obj_uuid, child_type):
    if (child_type is None):
        return (False, )
    obj_class = self._get_resource_class(obj_type)
    if (child_type not in obj_class.children_fields):
        return (False, ('%s is not a child type of %s' % (child_type, obj_type)))
    col_start = (('children:' + child_type[:(- 1)]) + ':')
    col_finish = (('children:' + child_type[:(- 1)]) + ';')
    num_children = self._cassandra_driver.get_count(datastore_api.OBJ_UUID_CF_NAME, obj_uuid, start=col_start, finish=col_finish)
    return (True, num_children)