{ count[$2]++ } END { print "labA", count["labA"] + 0; print "labB", count["labB"] + 0 }