added label counts output
outdir option