example of using phylesystem to count the number or trees