Sort names by count.

This is nice for debugging purposes.
Use drop instead of slice.
Prevent broken pipes.

When using, for instance, head(1), the output stream can be closed; if we keep
writing to it, we get an exception thrown.
Filter out common (boring) names.