in reply to what does $|++ do here?

See also Special Variables, Command-Line Options, and One-Liners

HTH,

planetscape