Fixed counting length for shadow rays