Added function to count occurences of a tag spec in a data1 tree.