I will take a look. It is actually counting AllLeafOccurences. Maybe, I need to change my approach. Thanks for your help.