I know about the two packages numline and lineno which both don't work
with my document. I seem to remember that there is a package which
basically puts a simple numbered ruler in the margin (independent of
the page content), but I can't remember its name.