Error checking for number of labels input.