pa's list mode: print count only once, not inside the loop.