def METHOD_NAME(current_path, zk=None, depth=0):
    logging.basicConfig()
    try:
        children = zk.get_children(current_path)
    except NoNodeError:
        print("ZK path %s doesn't exist." % (current_path))
        return 0
    counter = len(children)
    if depth == 0:
        return counter
    last_logged_number = 0
    for child in children:
        counter += METHOD_NAME(current_path + "/" + child, zk, depth - 1)
        if counter - last_logged_number > 5000:
            last_logged_number = counter
            print("Scanned %d znodes at ZK path %s" % (counter, current_path))
    return counter