Add linkCount info.

Add linkCount wrapping System.Posix.Files.linkCount and divide makeAtMostNcolomns into smaller functions for ease of reuse.