print the number of terminal nodes

terminalcount(&t);