Count number of trees from n nodes