countTree function

countTree