Quoting pegamode.
Quote:
This code works quite good for me:

For how many leaves?