revisiting countingTrees.rb