def count_can_reach(x, y, z, bots):
    """
    Returns the number of bots that can reach (x,y,z).
    """
    # Get distances from the given bot
    xs = abs(bots[:, 0]-x)
    ys = abs(bots[:, 1]-y)
    zs = abs(bots[:, 2]-z)

    return sum((xs + ys + zs) <= bots[:, 3])