In my usage of batch, the entire batch size is always the same, so
instead of display N-duplicate lines, let's just spit out one with the
count. Also allows a hook for counting the batch sizes.