Function to test how many phrases of the alignment are labelled by inputted labels