Sorted line counts