Print number of labels

Get the number of labels from union-find. Print this on the command line.