Didn't try this myself, but how about this:
tar xvf archive.tar | tailhead -n50 Tar outputs a line to STDOUT for each file extracted, then the tailhead command will kill the pipe after 50 lines. Upon the pipe dying, I'd expect the tar to die too.