A command to ask the selected TextGrid object how many of the specified labels it contains in the specified tier.
The number of intervals or points with label Label text in tier Tier number is written into the Info window. If the specified tier does not exist, the number will be 0.
You can use this command to put the number into a script variable:
selectObject: "TextGrid hallo"
number_of_a = Count labels: 1, "a"
In this case, the value will not be written into the Info window.
© ppgb, April 21, 2014